mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-25 22:12:09 -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 {
|
activeFragments().filterIsInstance<FragmentActivityExtensions>().forEach {
|
||||||
if (it.onBackPressed(this) == FragmentActivityExtensions.Super.ShouldCall) {
|
if (it.onBackPressed(this) == FragmentActivityExtensions.Super.ShouldCall) {
|
||||||
super.onBackPressed()
|
finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1065,8 +1065,7 @@ public abstract class CoreReaderFragment extends BaseFragment
|
|||||||
if (mainMenu != null) {
|
if (mainMenu != null) {
|
||||||
mainMenu.onFileOpened(urlIsValid());
|
mainMenu.onFileOpened(urlIsValid());
|
||||||
}
|
}
|
||||||
openArticle(UNINITIALISER_ADDRESS);
|
openArticle(zimFileReader.getMainPage());
|
||||||
webViewList.clear();
|
|
||||||
safeDispose();
|
safeDispose();
|
||||||
bookmarkingDisposable = Flowable.combineLatest(
|
bookmarkingDisposable = Flowable.combineLatest(
|
||||||
newBookmarksDao.bookmarkUrlsForCurrentBook(zimFileReader),
|
newBookmarksDao.bookmarkUrlsForCurrentBook(zimFileReader),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user