mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-02-17 03:50:56 +01:00
fix navigation bar being fully colored
This commit is contained in:
parent
83f2c34f21
commit
5c89f1cc7c
@ -160,6 +160,11 @@ class MainActivity : SimpleActivity(), FlingListener {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onStart() {
|
||||||
|
super.onStart()
|
||||||
|
home_screen_grid.appWidgetHost.startListening()
|
||||||
|
}
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
updateStatusbarColor(Color.TRANSPARENT)
|
updateStatusbarColor(Color.TRANSPARENT)
|
||||||
@ -194,11 +199,11 @@ class MainActivity : SimpleActivity(), FlingListener {
|
|||||||
|
|
||||||
refetchLaunchers()
|
refetchLaunchers()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
override fun onStart() {
|
// avoid showing fully colored navigation bars
|
||||||
super.onStart()
|
if (window.navigationBarColor != resources.getColor(R.color.semitransparent_navigation)) {
|
||||||
home_screen_grid.appWidgetHost.startListening()
|
window.navigationBarColor = Color.TRANSPARENT
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onStop() {
|
override fun onStop() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user