Skip to content

Commit 195ba50

Browse files
cwrenAndroid (Google) Code Review
authored andcommitted
Merge "Clear out any existing buttons before adding the set of requested actions." into jb-dev
2 parents 407f2fd + 2c22eb0 commit 195ba50

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
@@ -1436,6 +1436,7 @@ private RemoteViews applyStandardTemplateWithActions(int layoutId) {
14361436
// Log.d("Notification", "has actions: " + mContentText);
14371437
big.setViewVisibility(R.id.actions, View.VISIBLE);
14381438
if (N>3) N=3;
1439+
big.removeAllViews(R.id.actions);
14391440
for (int i=0; i<N; i++) {
14401441
final RemoteViews button = generateActionButton(mActions.get(i));
14411442
//Log.d("Notification", "adding action " + i + ": " + mActions.get(i).title);

0 commit comments

Comments
 (0)