#2179 tab restoring works again

This commit is contained in:
HissPirat 2020-07-01 11:30:25 +02:00
parent 7f9a989276
commit 2e15106f97

View File

@ -98,13 +98,16 @@ class ReaderFragment : CoreReaderFragment() {
}
override fun openHomeScreen() {
hideTabSwitcher()
if (webViewList.size == 0) {
hideTabSwitcher()
}
}
override fun hideTabSwitcher() {
if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(false)
actionBar.setDisplayShowTitleEnabled(true)
setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED)
closeAllTabsButton.setImageDrawable(
ContextCompat.getDrawable(
@ -119,7 +122,6 @@ class ReaderFragment : CoreReaderFragment() {
progressBar.progress = 0
contentFrame.visibility = View.VISIBLE
}
// selectTab(currentWebViewIndex)
if (mainMenu != null) {
mainMenu.showWebViewOptions(true)
}
@ -131,10 +133,6 @@ class ReaderFragment : CoreReaderFragment() {
}
}
// override fun handleBackOnLastWebViewPage() {
//
// }
override fun onCreateOptionsMenu(menu: Menu, menuInflater: MenuInflater) {
super.onCreateOptionsMenu(menu, menuInflater)
menu.findItem(R.id.menu_new_navigation)?.isVisible = false