mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-04 17:37:25 +00:00
Some functionality idk
This commit is contained in:
parent
8eec1d9a9b
commit
0079c060b1
1 changed files with 7 additions and 6 deletions
|
|
@ -118,8 +118,8 @@ class MainActivity : AppCompatActivity(), AppMenuAdapter.OnItemClickListener, Ap
|
|||
}
|
||||
|
||||
override fun onNewIntent(intent: Intent?) {
|
||||
backToHome()
|
||||
super.onNewIntent(intent)
|
||||
backToHome()
|
||||
}
|
||||
|
||||
override fun onStop() {
|
||||
|
|
@ -133,14 +133,18 @@ class MainActivity : AppCompatActivity(), AppMenuAdapter.OnItemClickListener, Ap
|
|||
unregisterReceiver(batteryReceiver)
|
||||
}
|
||||
|
||||
@SuppressLint("NotifyDataSetChanged")
|
||||
override fun onStart() {
|
||||
setTextSizes()
|
||||
super.onStart()
|
||||
startTask()
|
||||
|
||||
// Keyboard is sometimes open when going back to the app, so close it.
|
||||
closeKeyboard()
|
||||
}
|
||||
|
||||
@SuppressLint("NotifyDataSetChanged")
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
setTextSizes()
|
||||
|
||||
setClockAlignment()
|
||||
setShortCutAlignment()
|
||||
|
|
@ -149,11 +153,8 @@ class MainActivity : AppCompatActivity(), AppMenuAdapter.OnItemClickListener, Ap
|
|||
setGestures()
|
||||
|
||||
adapter?.notifyDataSetChanged()
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
open inner class GestureListener : GestureDetector.SimpleOnGestureListener() {
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.TIRAMISU)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue