diff options
| author | 2015-09-10 20:02:20 +0000 | |
|---|---|---|
| committer | 2015-09-10 20:02:20 +0000 | |
| commit | 84cb35aa280a409031a0ce9ef6194684f32101df (patch) | |
| tree | c5dafdb9dedc1115f6175b9599188715e1398d8c | |
| parent | a94984b435a21bb1b080baf3a780226143b0f2ab (diff) | |
| parent | 94a4764649f3611806b95d3f1394ea9f77e30459 (diff) | |
am 94a47646: am 27cb5670: am 3d1115db: Merge "Fixes cloned notification actions missing icon." into cw-e-dev
* commit '94a4764649f3611806b95d3f1394ea9f77e30459':
Fixes cloned notification actions missing icon.
| -rw-r--r-- | core/java/android/app/Notification.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 93813279c0dc..55aec5906cac 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -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(); |