Fix for
bug 1326374
MozReview-Commit-ID: BabmpQh9Yaq
--- a/mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java
+++ b/mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java
@@ -140,17 +140,17 @@ public class MediaControlService extends
}
private boolean isMediaPlaying() {
return mActionState.equals(ACTION_RESUME);
}
private void initialize() {
if (mInitialize ||
- !isAndroidVersionLollopopOrHigher()) {
+ !isAndroidVersionLollipopOrHigher()) {
return;
}
Log.d(LOGTAG, "initialize");
getGeckoPreference();
initMediaSession();
coverSize = (int) getResources().getDimension(R.dimen.notification_media_cover);
@@ -169,17 +169,17 @@ public class MediaControlService extends
notifyControlInterfaceChanged(ACTION_STOP);
PrefsHelper.removeObserver(mPrefsObserver);
Tabs.unregisterOnTabsChangedListener(this);
mInitialize = false;
stopSelf();
}
- private boolean isAndroidVersionLollopopOrHigher() {
+ private boolean isAndroidVersionLollipopOrHigher() {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
}
private void handleIntent(Intent intent) {
if (intent == null || intent.getAction() == null || !mInitialize) {
return;
}
@@ -456,9 +456,9 @@ public class MediaControlService extends
Intent pauseIntent = new Intent(getApplicationContext(), MediaControlService.class);
pauseIntent.setAction(ACTION_PAUSE);
handleIntent(pauseIntent);
}
}
}
-}
\ No newline at end of file
+}