am b59d3820: am 928b2bf7: am b43b06d1: Merge "Fixed a bug where notifications were not posted on secondary users" into mnc-dev
* commit 'b59d38201b267fec97d0c8437633a09201808dca': Fixed a bug where notifications were not posted on secondary users
This commit is contained in:
@@ -3168,7 +3168,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);
|
||||
@@ -4437,7 +4437,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,
|
||||
|
||||
Reference in New Issue
Block a user