File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
app/src/main/kotlin/com/simplemobiletools/launcher/activities Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,11 @@ class MainActivity : SimpleActivity(), FlingListener {
160160 return null
161161 }
162162
163+ override fun onStart () {
164+ super .onStart()
165+ home_screen_grid.appWidgetHost.startListening()
166+ }
167+
163168 override fun onResume () {
164169 super .onResume()
165170 updateStatusbarColor(Color .TRANSPARENT )
@@ -194,11 +199,11 @@ class MainActivity : SimpleActivity(), FlingListener {
194199
195200 refetchLaunchers()
196201 }
197- }
198202
199- override fun onStart () {
200- super .onStart()
201- home_screen_grid.appWidgetHost.startListening()
203+ // avoid showing fully colored navigation bars
204+ if (window.navigationBarColor != resources.getColor(R .color.semitransparent_navigation)) {
205+ window.navigationBarColor = Color .TRANSPARENT
206+ }
202207 }
203208
204209 override fun onStop () {
You can’t perform that action at this time.
0 commit comments