From ce8ceff4550a70b4c9208170363412f4f2c15ca4 Mon Sep 17 00:00:00 2001 From: IndusAryan <125901294+IndusAryan@users.noreply.github.com> Date: Fri, 28 Jul 2023 00:43:14 +0530 Subject: [PATCH] fix(deps): update navigation to v2.6.0 --- .../java/com/github/libretube/ui/activities/MainActivity.kt | 3 --- gradle/libs.versions.toml | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/activities/MainActivity.kt b/app/src/main/java/com/github/libretube/ui/activities/MainActivity.kt index ace01df7e..3ece11d55 100644 --- a/app/src/main/java/com/github/libretube/ui/activities/MainActivity.kt +++ b/app/src/main/java/com/github/libretube/ui/activities/MainActivity.kt @@ -500,9 +500,6 @@ class MainActivity : BaseActivity() { } private fun navigateToBottomSelectedItem(item: MenuItem) { - // clear backstack if it's the start fragment - if (startFragmentId == item.itemId) navController.backQueue.clear() - if (item.itemId == R.id.subscriptionsFragment) { binding.bottomNav.removeBadge(R.id.subscriptionsFragment) } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 23d6cdea7..24264fca2 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -5,7 +5,7 @@ gradle = "8.1.0" lifecycle = "2.6.1" constraintlayout = "2.1.4" material = "1.9.0" -navigation = "2.5.3" +navigation = "2.6.0" legacySupport = "1.0.0" preference = "1.2.0" extJunit = "1.1.5" @@ -60,4 +60,4 @@ room = { group = "androidx.room", name="room-ktx", version.ref = "room" } room-compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room" } kotlinx-serialization = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinxSerialization" } kotlinx-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime", version.ref = "kotlinxDatetime" } -kotlinx-serialization-retrofit = { group = "com.jakewharton.retrofit", name = "retrofit2-kotlinx-serialization-converter", version.ref = "kotlinxRetrofit" } \ No newline at end of file +kotlinx-serialization-retrofit = { group = "com.jakewharton.retrofit", name = "retrofit2-kotlinx-serialization-converter", version.ref = "kotlinxRetrofit" }