mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-19 04:16:27 -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() {
|
override fun openHomeScreen() {
|
||||||
hideTabSwitcher()
|
if (webViewList.size == 0) {
|
||||||
|
hideTabSwitcher()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun hideTabSwitcher() {
|
override fun hideTabSwitcher() {
|
||||||
if (actionBar != null) {
|
if (actionBar != null) {
|
||||||
actionBar.setDisplayHomeAsUpEnabled(false)
|
actionBar.setDisplayHomeAsUpEnabled(false)
|
||||||
actionBar.setDisplayShowTitleEnabled(true)
|
actionBar.setDisplayShowTitleEnabled(true)
|
||||||
|
|
||||||
setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED)
|
setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED)
|
||||||
closeAllTabsButton.setImageDrawable(
|
closeAllTabsButton.setImageDrawable(
|
||||||
ContextCompat.getDrawable(
|
ContextCompat.getDrawable(
|
||||||
@ -119,7 +122,6 @@ class ReaderFragment : CoreReaderFragment() {
|
|||||||
progressBar.progress = 0
|
progressBar.progress = 0
|
||||||
contentFrame.visibility = View.VISIBLE
|
contentFrame.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
// selectTab(currentWebViewIndex)
|
|
||||||
if (mainMenu != null) {
|
if (mainMenu != null) {
|
||||||
mainMenu.showWebViewOptions(true)
|
mainMenu.showWebViewOptions(true)
|
||||||
}
|
}
|
||||||
@ -131,10 +133,6 @@ class ReaderFragment : CoreReaderFragment() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// override fun handleBackOnLastWebViewPage() {
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
|
|
||||||
override fun onCreateOptionsMenu(menu: Menu, menuInflater: MenuInflater) {
|
override fun onCreateOptionsMenu(menu: Menu, menuInflater: MenuInflater) {
|
||||||
super.onCreateOptionsMenu(menu, menuInflater)
|
super.onCreateOptionsMenu(menu, menuInflater)
|
||||||
menu.findItem(R.id.menu_new_navigation)?.isVisible = false
|
menu.findItem(R.id.menu_new_navigation)?.isVisible = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user