Skip to content

Commit d141d34

Browse files
alperozturk96backportbot[bot]
authored andcommitted
fix(media): video player returning from background
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent 5c0fa01 commit d141d34

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -781,13 +781,9 @@ class PreviewMediaActivity :
781781

782782
override fun onStop() {
783783
Log_OC.v(TAG, "onStop")
784-
785-
// While the fullscreen dialog is up it renders on its own surface with this player attached to it.
786-
// Releasing here leaves that surface bound to a dead player once the task returns to the foreground.
787784
if (!isFullscreenActive()) {
788785
releaseVideoPlayer()
789786
}
790-
791787
super.onStop()
792788
}
793789

app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,9 @@ class PreviewMediaFragment :
187187

188188
override fun onResume() {
189189
super.onResume()
190-
191-
// The fullscreen dialog holds the player on its own surface, re-binding it to this fragment's
192-
// view would leave the visible dialog with a detached player.
193190
if (isFullscreenActive) {
194191
return
195192
}
196-
197193
applyWindowInsets()
198194
prepareMedia()
199195
}

0 commit comments

Comments
 (0)