Skip to content

Commit

Permalink
Revert "Fix #5266: Call setUpDrawer( ) directly if binding already in…
Browse files Browse the repository at this point in the history
…itialized (#5276)"

This reverts commit e81ba71.
  • Loading branch information
BenHenning authored Dec 23, 2023
1 parent 74f4baf commit e8abe69
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
}

/**
Expand Down

0 comments on commit e8abe69

Please sign in to comment.