From f33b11182a8a06e014ce3e0e4e3a5d84eae82f54 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Wed, 15 Jul 2015 17:45:11 -0700 Subject: Fixed a bug where notifications were not posted on secondary users Unfortunately they made sound though, driving people crazy. Bug: 22351758 Change-Id: I9ec5bac97c2d587c4e356ab759876def3369b11a --- core/java/android/app/Notification.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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, -- cgit v1.1