Bug 1278255 - MediaControlService: Set correct action title. r=ahunt
authorSebastian Kaspari <s.kaspari@gmail.com>
Mon, 06 Jun 2016 16:55:26 +0200
changeset 300622 c4ad6175835899aac9ca58eaf40ff77853b20823
parent 300621 62b97fa3c6ab25bfe0f30b7230ec8f7aadc0ebd4
child 300623 41115c9571f20cf168e85315c359a8ab40365a69
push id30320
push usercbook@mozilla.com
push dateTue, 07 Jun 2016 13:22:11 +0000
treeherdermozilla-central@bc9db3800f3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahunt
bugs1278255
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1278255 - MediaControlService: Set correct action title. r=ahunt MozReview-Commit-ID: 5QT7zFQIMTF
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
@@ -284,17 +284,17 @@ public class MediaControlService extends
         NotificationManagerCompat.from(this)
                 .notify(MEDIA_CONTROL_ID, notification);
     }
 
     private Notification.Action createNotificationAction(String action) {
         boolean isPlayAction = action.equals(ACTION_PLAY);
 
         int icon = isPlayAction ? R.drawable.ic_media_play : R.drawable.ic_media_pause;
-        String title = getString(isPlayAction ? R.string.media_pause : R.string.media_pause);
+        String title = getString(isPlayAction ? R.string.media_play : R.string.media_pause);
 
         final Intent intent = new Intent(getApplicationContext(), MediaControlService.class);
         intent.setAction(action);
         final PendingIntent pendingIntent = PendingIntent.getService(getApplicationContext(), 1, intent, 0);
 
         //noinspection deprecation - The new constructor is only for API > 23
         return new Notification.Action.Builder(icon, title, pendingIntent).build();
     }