Fix search activity going to a tab

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

View File

@ -514,7 +514,7 @@ open class MainActivity : BaseActivity(), DownloadServiceListener {
if (if (router.backstackSize == 1) !(sheetController?.handleSheetBack() ?: false)
else !router.handleBack()
) {
if (preferences.backReturnsToStart().get() &&
if (preferences.backReturnsToStart().get() && this !is SearchActivity &&
startingTab() != bottom_nav?.selectedItemId) {
goToStartingTab()
}