From b4f1b97ea61b2fdec9363425da8c0bea6b1619bc Mon Sep 17 00:00:00 2001 From: ashiagr Date: Mon, 12 Sep 2022 12:58:49 +0530 Subject: [PATCH 1/2] Fix video playback behavior for custom file --- .../java/au/com/shiftyjelly/pocketcasts/ui/MainActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/au/com/shiftyjelly/pocketcasts/ui/MainActivity.kt b/app/src/main/java/au/com/shiftyjelly/pocketcasts/ui/MainActivity.kt index ee615a51d90..88ee6fb0057 100644 --- a/app/src/main/java/au/com/shiftyjelly/pocketcasts/ui/MainActivity.kt +++ b/app/src/main/java/au/com/shiftyjelly/pocketcasts/ui/MainActivity.kt @@ -445,8 +445,8 @@ class MainActivity : viewModel.playbackState.observe(this) { state -> if (viewModel.lastPlaybackState?.episodeUuid != state.episodeUuid || (viewModel.lastPlaybackState?.isPlaying == false && state.isPlaying)) { launch(Dispatchers.Default) { - val episode = episodeManager.findByUuid(state.episodeUuid) - if (episode?.isVideo == true && state.isPlaying) { + val playable = episodeManager.findPlayableByUuid(state.episodeUuid) + if (playable?.isVideo == true && state.isPlaying) { launch(Dispatchers.Main) { if (resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT) { binding.playerBottomSheet.openPlayer() From 57d90c6c44ba3415862e9c66984efa3bd46079d8 Mon Sep 17 00:00:00 2001 From: ashiagr Date: Mon, 12 Sep 2022 13:27:43 +0530 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fefce31bff..afb90a5d84f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ 7.23.0 ----- +* Bug Fixes: + * Fix custom video file not opening in full-screen mode. + ([#304](https://github.com/Automattic/pocket-casts-android/pull/304)). 7.22.0 -----