diff options
| author | 2018-07-20 14:00:24 -0700 | |
|---|---|---|
| committer | 2018-07-20 14:00:24 -0700 | |
| commit | 5da4a6be6a2700b540778df9fca9252850f6ca8d (patch) | |
| tree | 254366fac57f834415db5e6f428848eb7d6da039 | |
| parent | 4560b6fd1cafce92ec916afd1617be434d54ecd1 (diff) | |
Fixed an issue when updating media actions
When updating media actions to not have actions,
they weren't properly removed.
Change-Id: Ie946679d27c8b9bfee4005bdd9429f7afd9febf7
Fixes: 111681308
Test: install attached app and update from 5 to 0 actions
| -rw-r--r-- | core/java/android/app/Notification.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 74d3c0df87ad..a1e3aff66426 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -7860,8 +7860,8 @@ public class Notification implements Parcelable final int N = mActionsToShowInCompact == null ? 0 : Math.min(mActionsToShowInCompact.length, MAX_MEDIA_BUTTONS_IN_COMPACT); + view.removeAllViews(com.android.internal.R.id.media_actions); if (N > 0) { - view.removeAllViews(com.android.internal.R.id.media_actions); for (int i = 0; i < N; i++) { if (i >= numActions) { throw new IllegalArgumentException(String.format( |