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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java

Issue 1326163002: Android Media Notification: remove "Touch to return" text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java
index 94175d120cada9b9ebad742b585ac277d580784c..7df892a41985ad0137cb1e37ceb91f1d8315c470 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/NotificationMediaPlaybackControls.java
@@ -346,14 +346,6 @@ public class NotificationMediaPlaybackControls {
return title.startsWith("\u25B6") ? title.substring(1).trim() : title;
}
- private String getStatus() {
- if (mMediaNotificationInfo.origin != null) {
- return mContext.getString(R.string.media_notification_link_text,
- mMediaNotificationInfo.origin);
- }
- return mContext.getString(R.string.media_notification_text_no_link);
- }
-
private PendingIntent createContentIntent() {
int tabId = mMediaNotificationInfo.tabId;
return PendingIntent.getActivity(
@@ -411,7 +403,7 @@ public class NotificationMediaPlaybackControls {
RemoteViews contentView = createContentView();
contentView.setTextViewText(R.id.title, mMediaNotificationInfo.title);
- contentView.setTextViewText(R.id.status, getStatus());
+ contentView.setTextViewText(R.id.status, mMediaNotificationInfo.origin);
if (mNotificationIcon != null) {
contentView.setImageViewBitmap(R.id.icon, mNotificationIcon);
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698