Skip to content

Commit

Permalink
Revert the back handling since it broke everything
Browse files Browse the repository at this point in the history
  • Loading branch information
nonproto committed Jan 17, 2025
1 parent 3869948 commit baeb3ea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ android {
minSdk = AndroidConfig.minSdkVersion
targetSdk = AndroidConfig.targetSdkVersion
applicationId = "org.nekomanga.neko"
versionCode = 18
versionName = "2.19.0"
versionCode = 19
versionName = "2.19.1"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled = true
setProperty("archivesBaseName", "Neko")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FeedController : BaseComposeController<FeedPresenter>() {

val context = LocalContext.current

BackHandler((this.activity as? MainActivity)?.shouldGoToStartingTab() == false) {
BackHandler((this.activity as? MainActivity)?.shouldGoToStartingTab() == true) {
(this.activity as? MainActivity)?.backCallback?.invoke()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ class LibraryController(

/** Library search query. */
private var query = ""
private var oldShowAllCategories = true

/** Currently selected mangaSet. */
private val selectedMangaSet = mutableSetOf<Manga>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BrowseController(incomingQuery: String = "") : BaseComposeController<Brows
val windowSizeClass = calculateWindowSizeClass(this.activity!!)
val isSideNav = (this.activity as? MainActivity)?.isSideNavigation() == true

BackHandler((this.activity as? MainActivity)?.shouldGoToStartingTab() == false) {
BackHandler((this.activity as? MainActivity)?.shouldGoToStartingTab() == true) {
(this.activity as? MainActivity)?.backCallback?.invoke()
}

Expand Down

0 comments on commit baeb3ea

Please sign in to comment.