mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-04 17:37:25 +00:00
Added long click listener to open settings to the clock
This commit is contained in:
parent
6282b83897
commit
d48c4687cd
1 changed files with 5 additions and 0 deletions
|
|
@ -312,6 +312,11 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
|||
}
|
||||
}
|
||||
|
||||
binding.clockLayout.setOnLongClickListener {_ ->
|
||||
startActivity(Intent(this@MainActivity, SettingsActivity::class.java))
|
||||
true
|
||||
}
|
||||
|
||||
// Return to home on back
|
||||
onBackPressedDispatcher.addCallback(this, object : OnBackPressedCallback(true) {
|
||||
override fun handleOnBackPressed() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue