mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
PreviewVideoActivity: ensure player is stopped when closing fullscreen
This already worked for onBackPressed Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
686748dda2
commit
e419144456
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ public class PreviewVideoActivity extends FileActivity implements OnCompletionLi
|
|||
exoPlayer = new SimpleExoPlayer.Builder(this).build();
|
||||
playerView.setPlayer(exoPlayer);
|
||||
|
||||
findViewById(R.id.exo_exit_fs).setOnClickListener(v -> finish());
|
||||
findViewById(R.id.exo_exit_fs).setOnClickListener(v -> onBackPressed());
|
||||
|
||||
if (mSavedPlaybackPosition >= 0) {
|
||||
exoPlayer.seekTo(mSavedPlaybackPosition);
|
||||
|
|
Loading…
Reference in a new issue