Skip to content

Commit 2c22eb0

Browse files
committed
Clear out any existing buttons before adding the set of requested actions.
Bug: 6459557 Change-Id: Id19050e7280208d4f98c1aabe8087c6fe6c8d72a
1 parent 92c6247 commit 2c22eb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/java/android/app/Notification.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,7 @@ private RemoteViews applyStandardTemplateWithActions(int layoutId) {
14321432
// Log.d("Notification", "has actions: " + mContentText);
14331433
big.setViewVisibility(R.id.actions, View.VISIBLE);
14341434
if (N>3) N=3;
1435+
big.removeAllViews(R.id.actions);
14351436
for (int i=0; i<N; i++) {
14361437
final RemoteViews button = generateActionButton(mActions.get(i));
14371438
//Log.d("Notification", "adding action " + i + ": " + mActions.get(i).title);

0 commit comments

Comments
 (0)