mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-18 20:05:53 -04:00
#2179 tab restoring works again
This commit is contained in:
parent
7f9a989276
commit
2e15106f97
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user