mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-25 14:02:36 -04:00
Fix navigation back button
This commit is contained in:
parent
b1740499a0
commit
8e20649cca
@ -229,7 +229,7 @@ abstract class CoreMainActivity : BaseActivity(), WebViewProvider {
|
||||
}
|
||||
activeFragments().filterIsInstance<FragmentActivityExtensions>().forEach {
|
||||
if (it.onBackPressed(this) == FragmentActivityExtensions.Super.ShouldCall) {
|
||||
super.onBackPressed()
|
||||
finish()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1065,8 +1065,7 @@ public abstract class CoreReaderFragment extends BaseFragment
|
||||
if (mainMenu != null) {
|
||||
mainMenu.onFileOpened(urlIsValid());
|
||||
}
|
||||
openArticle(UNINITIALISER_ADDRESS);
|
||||
webViewList.clear();
|
||||
openArticle(zimFileReader.getMainPage());
|
||||
safeDispose();
|
||||
bookmarkingDisposable = Flowable.combineLatest(
|
||||
newBookmarksDao.bookmarkUrlsForCurrentBook(zimFileReader),
|
||||
|
Loading…
x
Reference in New Issue
Block a user