fixing a glitch with navigation button not working well

This commit is contained in:
tibbi 2022-08-01 22:46:04 +02:00
parent 26a6b361ce
commit 6726e98c4c
1 changed files with 4 additions and 3 deletions

View File

@ -203,6 +203,10 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
}
setupQuickFilter()
main_toolbar.setNavigationOnClickListener {
onBackPressed()
}
}
override fun onPause() {
@ -1039,9 +1043,6 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
private fun showBackNavigationArrow() {
main_toolbar.navigationIcon = resources.getColoredDrawableWithColor(R.drawable.ic_arrow_left_vector, getProperStatusBarColor().getContrastColor())
main_toolbar.setNavigationOnClickListener {
onBackPressed()
}
}
private fun refreshViewPager() {