Commit 5e2a42b9 authored by Geoffrey Métais's avatar Geoffrey Métais

Simplify type check for video resume point saving

parent 4e2c09f8
......@@ -753,7 +753,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
if (media == null || media.getId() == 0)
return;
final boolean canSwitchToVideo = canSwitchToVideo();
if (canSwitchToVideo || media.isPodcast()) {
if (media.getType() == MediaWrapper.TYPE_VIDEO || canSwitchToVideo || media.isPodcast()) {
//Save progress
final long time = getTime();
final long length = getLength();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment