Bug 1278255 - MediaControlService: Set correct action title. r?ahunt
MozReview-Commit-ID: 5QT7zFQIMTF
--- 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();
}