diff --git a/feature/player/src/main/java/dev/anilbeesetti/nextplayer/feature/player/PlayerActivity.kt b/feature/player/src/main/java/dev/anilbeesetti/nextplayer/feature/player/PlayerActivity.kt index 2a354fc27..118394832 100644 --- a/feature/player/src/main/java/dev/anilbeesetti/nextplayer/feature/player/PlayerActivity.kt +++ b/feature/player/src/main/java/dev/anilbeesetti/nextplayer/feature/player/PlayerActivity.kt @@ -690,16 +690,14 @@ class PlayerActivity : AppCompatActivity() { super.finish() } - override fun onNewIntent(intent: Intent?) { + override fun onNewIntent(intent: Intent) { super.onNewIntent(intent) - if (intent != null) { - playlistManager.clearQueue() - viewModel.resetAllToDefaults() - setIntent(intent) - prettyPrintIntent() - shouldFetchPlaylist = true - playVideo(intent.data!!) - } + playlistManager.clearQueue() + viewModel.resetAllToDefaults() + setIntent(intent) + prettyPrintIntent() + shouldFetchPlaylist = true + playVideo(intent.data!!) } override fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 5654c50a5..6e9d6de73 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ aboutlibraries = "11.1.3" accompanist = "0.34.0" androidGradlePlugin = "8.2.2" androidMaterial = "1.11.0" -androidxActivity = "1.8.2" +androidxActivity = "1.9.0" androidxAppCompat = "1.6.1" androidxComposeCompiler = "1.5.11" androidxComposeBom = "2024.04.01"