summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2015-07-15 17:45:11 -0700
committerSelim Cinek <cinek@google.com>2015-07-16 17:24:51 -0700
commitf33b11182a8a06e014ce3e0e4e3a5d84eae82f54 (patch)
treecdb978595377f3e75afc6064e864570ff77cbf16 /core
parente8bae6288bf0f241f0cea70f2c5e8294f930d4d8 (diff)
downloadframeworks_base-f33b11182a8a06e014ce3e0e4e3a5d84eae82f54.zip
frameworks_base-f33b11182a8a06e014ce3e0e4e3a5d84eae82f54.tar.gz
frameworks_base-f33b11182a8a06e014ce3e0e4e3a5d84eae82f54.tar.bz2
Fixed a bug where notifications were not posted on secondary users
Unfortunately they made sound though, driving people crazy. Bug: 22351758 Change-Id: I9ec5bac97c2d587c4e356ab759876def3369b11a
Diffstat (limited to 'core')
-rw-r--r--core/java/android/app/Notification.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index c3dece8..6a95fa5 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -3122,7 +3122,7 @@ public class Notification implements Parcelable
private RemoteViews generateActionButton(Action action) {
final boolean tombstone = (action.actionIntent == null);
- RemoteViews button = new RemoteViews(mContext.getPackageName(),
+ RemoteViews button = new BuilderRemoteViews(mContext.getApplicationInfo(),
tombstone ? getActionTombstoneLayoutResource()
: getActionLayoutResource());
button.setTextViewCompoundDrawablesRelative(R.id.action0, action.icon, 0, 0, 0);
@@ -4391,7 +4391,7 @@ public class Notification implements Parcelable
private RemoteViews generateMediaActionButton(Action action) {
final boolean tombstone = (action.actionIntent == null);
- RemoteViews button = new RemoteViews(mBuilder.mContext.getPackageName(),
+ RemoteViews button = new BuilderRemoteViews(mBuilder.mContext.getApplicationInfo(),
R.layout.notification_material_media_action);
button.setImageViewResource(R.id.action0, action.icon);
button.setDrawableParameters(R.id.action0, false, -1,