Fix for bug 1326374 draft
authorbharg <ranjani4ever@gmail.com>
Wed, 04 Jan 2017 12:43:05 +0530
changeset 455574 5b97fc5e20be
parent 455138 31ffcb82ced8
child 541037 6e5f5e8bb15e
push id40288
push userbmo:ranjani4ever@gmail.com
push date2017-01-04 07:30 +0000
bugs1326374
milestone53.0a1
Fix for bug 1326374 MozReview-Commit-ID: BabmpQh9Yaq
mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java
--- 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
+}