From 477c4a4da083dabbb3422a7f3090a26d6fca5e77 Mon Sep 17 00:00:00 2001 From: vipulkumar Date: Wed, 11 Sep 2024 00:26:37 +0530 Subject: [PATCH 1/2] Fix resuming audio from last point --- app/src/main/java/com/kafka/user/home/AppNavigation.kt | 2 +- data/database/src/main/java/com/kafka/data/db/KafkaDatabase.kt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/com/kafka/user/home/AppNavigation.kt b/app/src/main/java/com/kafka/user/home/AppNavigation.kt index 77096cc90..a50fb4ca3 100644 --- a/app/src/main/java/com/kafka/user/home/AppNavigation.kt +++ b/app/src/main/java/com/kafka/user/home/AppNavigation.kt @@ -303,7 +303,7 @@ inline fun activityHiltViewModel() = @Composable private fun SwitchStatusBarsOnPlayer(navController: NavHostController) { val currentRoute by navController.currentBackStackEntryAsState() - val destination = currentRoute?.destination?.route?.split("/")?.getOrNull(1) + val destination = currentRoute?.destination?.route?.substringBefore("/") val isPlayerUp = destination == "player" val view = LocalView.current diff --git a/data/database/src/main/java/com/kafka/data/db/KafkaDatabase.kt b/data/database/src/main/java/com/kafka/data/db/KafkaDatabase.kt index 2d4a181fb..d663db6bb 100644 --- a/data/database/src/main/java/com/kafka/data/db/KafkaDatabase.kt +++ b/data/database/src/main/java/com/kafka/data/db/KafkaDatabase.kt @@ -49,8 +49,6 @@ interface KafkaDatabase { autoMigrations = [ AutoMigration(from = 3, to = 4, spec = KafkaRoomDatabase.UserRemovalMigration::class), AutoMigration(from = 4, to = 5, spec = KafkaRoomDatabase.RecentAudioMigration::class), - AutoMigration(from = 5, to = 8), - AutoMigration(from = 6, to = 8), AutoMigration(from = 7, to = 8), ], ) From 0d549b3a084f9e33a2d5b36a01a18aa72e38dd48 Mon Sep 17 00:00:00 2001 From: vipulkumar Date: Wed, 11 Sep 2024 10:41:10 +0530 Subject: [PATCH 2/2] Release 0.43.0 --- app/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 7ce1f2b36..778acd863 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -18,8 +18,8 @@ android { defaultConfig { applicationId = "com.kafka.user" - versionCode = 82 - versionName = "0.42.0" + versionCode = 83 + versionName = "0.43.0" val properties = Properties() properties.load(project.rootProject.file("local.properties").inputStream())