Commit c20e908e authored by Geoffrey Métais's avatar Geoffrey Métais

Don't update widget during video playback

parent e6c24b23
......@@ -1526,7 +1526,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
}
private void updateWidgetPosition(final float pos) {
if (!mHasWidget)
if (!mHasWidget || isVideoPlaying())
return;
// no more than one widget mUpdateMeta for each 1/50 of the song
long timestamp = System.currentTimeMillis();
......@@ -1539,7 +1539,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
private void broadcastMetadata() {
final MediaWrapper media = getCurrentMedia();
if (media == null || media.getType() != MediaWrapper.TYPE_AUDIO)
if (media == null || isVideoPlaying())
return;
sendBroadcast(new Intent("com.android.music.metachanged")
.putExtra("track", media.getTitle())
......
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