Fix nav bar having a background sometimes when switching screens

This commit is contained in:
Jays2Kings 2021-04-16 15:03:50 -04:00
parent 5d2a0feb5f
commit 4cbf1cc785

View File

@ -226,7 +226,7 @@ fun Controller.scrollViewWith(
v.layoutParams = params
onLeavingController?.invoke()
}
if (!customPadding && router.backstackSize == 2) {
if (!customPadding && router.backstackSize == 2 && changeType == ControllerChangeType.PUSH_EXIT) {
val parent = recycler.parent as? ViewGroup ?: return
val bottomNav = activityBinding?.bottomNav ?: return
val v = View(activity)