Bug 1277373 - remove the errors in lint and checktests. r=Margaret
authorAlastor Wu <alwu@mozilla.com>
Thu, 02 Jun 2016 16:16:33 +0800
changeset 374638 7916d8bb58d701fa5b315d2f4794a7b243eebeef
parent 374637 00d30d448554e802975a76a9572911b902a1cb7f
child 374639 418fd092a81ab94faa0f4acdb4c0da36f1e0e7f2
child 374867 6d0149e50bfff4adf66fe60be8a8beeef2412a28
push id20055
push usermconley@mozilla.com
push dateThu, 02 Jun 2016 19:00:42 +0000
reviewersMargaret
bugs1277373
milestone49.0a1
Bug 1277373 - remove the errors in lint and checktests. r=Margaret MozReview-Commit-ID: JmlgpSzE1HV
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
@@ -15,17 +15,16 @@ import android.content.Intent;
 import android.content.res.Resources;
 import android.media.session.MediaController;
 import android.media.session.MediaSession;
 import android.media.session.MediaSessionManager;
 import android.os.Build;
 import android.os.Bundle;
 import android.os.IBinder;
 import android.util.Log;
-import android.R;
 
 public class MediaControlService extends Service {
     private static final String LOGTAG = "MediaControlService";
 
     public static final String ACTION_START          = "action_start";
     public static final String ACTION_PLAY           = "action_play";
     public static final String ACTION_PAUSE          = "action_pause";
     public static final String ACTION_STOP           = "action_stop";
@@ -79,17 +78,17 @@ public class MediaControlService extends
         stopSelf();
     }
 
     private boolean isAndroidVersionLollopopOrHigher() {
         return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
     }
 
     private void handleIntent(Intent intent) {
-        if(intent == null || intent.getAction() == null ||
+        if (intent == null || intent.getAction() == null ||
            !mIsInitMediaSession) {
             return;
         }
 
         Log.d(LOGTAG, "HandleIntent, action = " + intent.getAction() + ", actionState = " + mActionState);
         switch (intent.getAction()) {
             case ACTION_START :
                 mController.getTransportControls().sendCustomAction(ACTION_START, null);