Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1967)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/remote/NotificationTransportControl.java

Issue 1078273002: Remove unnecesary ApiCompatibilityUtils calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: newt's comments Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/media/remote/NotificationTransportControl.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/remote/NotificationTransportControl.java b/chrome/android/java/src/org/chromium/chrome/browser/media/remote/NotificationTransportControl.java
index 3ce2f5232be78c2123f35d209c293445ba8aa22e..5591e6db45c39355daab374a198bbcab55700828 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/remote/NotificationTransportControl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/remote/NotificationTransportControl.java
@@ -19,7 +19,6 @@ import android.util.DisplayMetrics;
import android.view.View;
import android.widget.RemoteViews;
-import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.base.VisibleForTesting;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.media.remote.RemoteVideoInfo.PlayerState;
@@ -577,8 +576,7 @@ public class NotificationTransportControl
videoInfo.currentTimeMillis, false);
contentView.setImageViewResource(R.id.playpause,
R.drawable.ic_vidcontrol_pause);
- ApiCompatibilityUtils.setContentDescriptionForRemoteView(contentView,
- R.id.playpause, mPauseDescription);
+ contentView.setContentDescription(R.id.playpause, mPauseDescription);
contentView.setOnClickPendingIntent(R.id.playpause,
getService().getPendingIntent(ListenerService.ACTION_ID_PAUSE));
break;
@@ -588,8 +586,7 @@ public class NotificationTransportControl
contentView.setProgressBar(R.id.progress, videoInfo.durationMillis,
videoInfo.currentTimeMillis, false);
contentView.setImageViewResource(R.id.playpause, R.drawable.ic_vidcontrol_play);
- ApiCompatibilityUtils.setContentDescriptionForRemoteView(contentView,
- R.id.playpause, mPlayDescription);
+ contentView.setContentDescription(R.id.playpause, mPlayDescription);
contentView.setOnClickPendingIntent(R.id.playpause,
getService().getPendingIntent(ListenerService.ACTION_ID_PLAY));
break;

Powered by Google App Engine
This is Rietveld 408576698