mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 14:52:13 -04:00
Search screen not popup after pressing back from search result
This commit is contained in:
parent
a7ec8fd901
commit
31ba1bc2df
@ -229,7 +229,10 @@ 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) {
|
||||||
if (navController.currentDestination?.label?.equals("Reader") == true) {
|
if (navController.currentDestination?.label?.equals("Reader") == true &&
|
||||||
|
navController.previousBackStackEntry?.destination
|
||||||
|
?.label?.equals("SearchFragment") == false
|
||||||
|
) {
|
||||||
finish()
|
finish()
|
||||||
} else {
|
} else {
|
||||||
super.onBackPressed()
|
super.onBackPressed()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user