From e8abe69e9521a1a6eb9a419a416fb36db269fef6 Mon Sep 17 00:00:00 2001 From: Ben Henning Date: Fri, 22 Dec 2023 22:09:59 -0800 Subject: [PATCH] Revert "Fix #5266: Call setUpDrawer( ) directly if binding already initialized (#5276)" This reverts commit e81ba7192d021101d30e686b752dae97f1f84cbc. --- .../drawer/NavigationDrawerFragmentPresenter.kt | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/src/main/java/org/oppia/android/app/drawer/NavigationDrawerFragmentPresenter.kt b/app/src/main/java/org/oppia/android/app/drawer/NavigationDrawerFragmentPresenter.kt index daddc7a8023..ecfa05f3782 100644 --- a/app/src/main/java/org/oppia/android/app/drawer/NavigationDrawerFragmentPresenter.kt +++ b/app/src/main/java/org/oppia/android/app/drawer/NavigationDrawerFragmentPresenter.kt @@ -374,21 +374,6 @@ class NavigationDrawerFragmentPresenter @Inject constructor( this.drawerLayout = drawerLayout this.toolbar = toolbar this.menuItemId = menuItemId - - /** - * [setUpDrawer] is called directly if binding is already initialized. - * Otherwise, [setUpDrawer] is called from [handleCreateView]. - * - * Note: [binding] is already initialized when [initializeDrawer] is called via [onRestart] - * and [handleCreateView] will not be called in that case. - */ - if (this::binding.isInitialized) { - setUpDrawer( - this.drawerLayout, - this.toolbar, - this.menuItemId - ) - } } /**