mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-05 01:47:24 +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?) {
|
override fun onNewIntent(intent: Intent?) {
|
||||||
backToHome()
|
|
||||||
super.onNewIntent(intent)
|
super.onNewIntent(intent)
|
||||||
|
backToHome()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onStop() {
|
override fun onStop() {
|
||||||
|
|
@ -133,14 +133,18 @@ class MainActivity : AppCompatActivity(), AppMenuAdapter.OnItemClickListener, Ap
|
||||||
unregisterReceiver(batteryReceiver)
|
unregisterReceiver(batteryReceiver)
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("NotifyDataSetChanged")
|
|
||||||
override fun onStart() {
|
override fun onStart() {
|
||||||
setTextSizes()
|
|
||||||
super.onStart()
|
super.onStart()
|
||||||
startTask()
|
startTask()
|
||||||
|
|
||||||
// Keyboard is sometimes open when going back to the app, so close it.
|
// Keyboard is sometimes open when going back to the app, so close it.
|
||||||
closeKeyboard()
|
closeKeyboard()
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressLint("NotifyDataSetChanged")
|
||||||
|
override fun onResume() {
|
||||||
|
super.onResume()
|
||||||
|
setTextSizes()
|
||||||
|
|
||||||
setClockAlignment()
|
setClockAlignment()
|
||||||
setShortCutAlignment()
|
setShortCutAlignment()
|
||||||
|
|
@ -149,11 +153,8 @@ class MainActivity : AppCompatActivity(), AppMenuAdapter.OnItemClickListener, Ap
|
||||||
setGestures()
|
setGestures()
|
||||||
|
|
||||||
adapter?.notifyDataSetChanged()
|
adapter?.notifyDataSetChanged()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
open inner class GestureListener : GestureDetector.SimpleOnGestureListener() {
|
open inner class GestureListener : GestureDetector.SimpleOnGestureListener() {
|
||||||
|
|
||||||
@RequiresApi(Build.VERSION_CODES.TIRAMISU)
|
@RequiresApi(Build.VERSION_CODES.TIRAMISU)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue