Merge "Fixes cloned notification actions missing icon." into cw-e-dev

This commit is contained in:
Gus Prevas
2015-09-10 19:40:19 +00:00
committed by Android (Google) Code Review

View File

@@ -953,6 +953,9 @@ public class Notification implements Parcelable
private Action(Icon icon, CharSequence title, PendingIntent intent, Bundle extras,
RemoteInput[] remoteInputs) {
this.mIcon = icon;
if (icon != null && icon.getType() == Icon.TYPE_RESOURCE) {
this.icon = icon.getResId();
}
this.title = title;
this.actionIntent = intent;
this.mExtras = extras != null ? extras : new Bundle();