diff options
author | Selim Cinek <cinek@google.com> | 2015-07-15 17:45:11 -0700 |
---|---|---|
committer | Selim Cinek <cinek@google.com> | 2015-07-16 17:24:51 -0700 |
commit | f33b11182a8a06e014ce3e0e4e3a5d84eae82f54 (patch) | |
tree | cdb978595377f3e75afc6064e864570ff77cbf16 /core | |
parent | e8bae6288bf0f241f0cea70f2c5e8294f930d4d8 (diff) | |
download | frameworks_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.java | 4 |
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, |