Skip to content

Commit

Permalink
Fix sub activity back naviagation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jays2Kings committed Mar 24, 2021
1 parent 06a802b commit 6b06833
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit 6b06833

Please sign in to comment.