Fix sub activity back naviagation

This commit is contained in:
Jays2Kings 2021-03-24 02:17:16 -04:00
parent 06a802bb5b
commit 6b06833fee

View File

@ -519,10 +519,10 @@ open class MainActivity : BaseActivity(), DownloadServiceListener {
goToStartingTab()
}
else {
if (!preferences.backReturnsToStart().get()) {
if (!preferences.backReturnsToStart().get() && this !is SearchActivity) {
setStartingTab()
}
SecureActivityDelegate.locked = true
SecureActivityDelegate.locked = this !is SearchActivity
super.onBackPressed()
}
}