Close apps drawer and widgets screen when navigating to other apps

This closes , closes 
This commit is contained in:
Ensar Sarajčić 2023-07-18 16:30:46 +02:00
parent c5ea727398
commit 10a06020e8

@ -178,6 +178,14 @@ class MainActivity : SimpleActivity(), FlingListener {
home_screen_grid.appWidgetHost.startListening()
}
override fun onTopResumedActivityChanged(isTopResumedActivity: Boolean) {
super.onTopResumedActivityChanged(isTopResumedActivity)
if (!isTopResumedActivity) {
hideFragment(all_apps_fragment)
hideFragment(widgets_fragment)
}
}
override fun onResume() {
super.onResume()
updateStatusbarColor(Color.TRANSPARENT)