Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

Commit

Permalink
fix onbackpressed regression
Browse files Browse the repository at this point in the history
  • Loading branch information
befora committed Jan 28, 2019
1 parent c017656 commit 1f021ac
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ open class MainActivity : MainActivityImpl2_Selection(), BottomNavigationView.On

override fun onBackPressed() {
when (getCurrentFragment()) {
is BrowserLatestFragment -> supportFragmentManager.popBackStackImmediate()
is BrowserRecentFragment -> supportFragmentManager.popBackStackImmediate()
is BrowserLatestFragment -> selectHome()
is BrowserRecentFragment -> selectHome()
is BrowserRemoteFragment -> onBackPressedBrowserRemote()
is BrowserSearchFragment -> supportFragmentManager.popBackStackImmediate()
is BrowserSeriesFragment -> supportFragmentManager.popBackStackImmediate()
is LoginEditFragment -> supportFragmentManager.popBackStackImmediate()
is LoginBrowserFragment -> supportFragmentManager.popBackStackImmediate()
is BrowserSearchFragment -> selectHome()
is BrowserSeriesFragment -> selectHome()
is LoginEditFragment -> showFragmentLoginBrowser()
is LoginBrowserFragment -> showFragmentSettings()
is SettingsAdvancedFragment -> showFragmentSettings()
else -> when (bottomNav.selectedItemId) {
R.id.navigation_home -> systemUtil.requestExitApplication()
Expand Down

0 comments on commit 1f021ac

Please sign in to comment.