From 5900447070f220654874a975e841a42ee3a85907 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 30 Dec 2019 16:26:54 -0800 Subject: Fix nav header switch --- .../main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt index 29222db1..a0f2c080 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt @@ -387,7 +387,7 @@ abstract class BaseMainActivity : BaseActivity(), MainActivityContract, with(drawerWrapperBinding) { drawer.addDrawerListener(object : DrawerLayout.SimpleDrawerListener() { override fun onDrawerClosed(drawerView: View) { - if (drawer !== navigation) return + if (drawerView !== navigation) return if (!pendingUpdate) return pendingUpdate = false binding.updateAccounts() -- cgit v1.2.3