mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-10 16:02:05 -04:00
Fix test cases failure
This commit is contained in:
parent
8e20649cca
commit
d6c7ec4c9d
@ -229,7 +229,11 @@ 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) {
|
||||||
finish()
|
if (navController.currentDestination?.label?.equals("Reader") == true) {
|
||||||
|
finish()
|
||||||
|
} else {
|
||||||
|
super.onBackPressed()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user