mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
PreviewVideoActivity: pause player when activity stops
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
e419144456
commit
22555a901a
1 changed files with 9 additions and 1 deletions
|
@ -208,4 +208,12 @@ public class PreviewVideoActivity extends FileActivity implements OnCompletionLi
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onStop() {
|
||||||
|
super.onStop();
|
||||||
|
if (exoPlayer.isPlaying()) {
|
||||||
|
exoPlayer.pause();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue