Less hacky way to make sure bottom action toolbar doesn't scroll down (#5871)

* Less hacky way to make sure bottom action toolbar doesn't scroll down

* Fix action toolbar overlapping on landscape

* Disable app bar transparency when ActionMode is present
This commit is contained in:
Ivan Iskandar
2021-09-11 21:22:01 +07:00
committed by GitHub
parent 52daf3d58c
commit 7b3c18bb97
4 changed files with 29 additions and 28 deletions
@@ -82,7 +82,7 @@ class UpdatesController :
}
binding.actionToolbar.applyInsetter {
type(navigationBars = true) {
margin(bottom = true)
margin(bottom = true, horizontal = true)
}
}
@@ -113,13 +113,10 @@ class UpdatesController :
binding.swipeRefresh.isRefreshing = false
}
.launchIn(viewScope)
(activity as? MainActivity)?.fixViewToBottom(binding.actionToolbar)
}
override fun onDestroyView(view: View) {
destroyActionModeIfNeeded()
(activity as? MainActivity)?.clearFixViewToBottom(binding.actionToolbar)
binding.actionToolbar.destroy()
adapter = null
super.onDestroyView(view)