Bug 1313559 - Don't need to notify gecko if the media was resumed-from-page.
MozReview-Commit-ID: Cemch546mcS
--- a/mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java
+++ b/mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java
@@ -108,17 +108,17 @@ public class MediaControlService extends
notifyControlInterfaceChanged(ACTION_STOP);
mTabReference = new WeakReference<>(null);
}
break;
case MEDIA_PLAYING_RESUME:
// user resume the paused-by-control media from page so that we
// should make the control interface consistent.
if (playingTab == tab && !isMediaPlaying()) {
- mController.getTransportControls().play();
+ notifyControlInterfaceChanged(ACTION_PAUSE);
}
break;
case CLOSED:
if (playingTab == null || playingTab == tab) {
// Remove the controls when the playing tab disappeared or was closed.
notifyControlInterfaceChanged(ACTION_STOP);
}
break;