summaryrefslogtreecommitdiff
path: root/core/java/android/app/Notification.java
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2012-05-08 09:49:13 -0400
committerChris Wren <cwren@android.com>2012-05-08 09:49:13 -0400
commit2c22eb0a49b369767eaa4e04c1727f947cfdec13 (patch)
tree079251a8e31aaafc524c1878f34dd01678ab889e /core/java/android/app/Notification.java
parent92c62479623ac65bdca03f961b6354b26d57ed62 (diff)
Clear out any existing buttons before adding the set of requested actions.
Bug: 6459557 Change-Id: Id19050e7280208d4f98c1aabe8087c6fe6c8d72a
Diffstat (limited to 'core/java/android/app/Notification.java')
-rw-r--r--core/java/android/app/Notification.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 2951476a93bd..961664955b10 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -1432,6 +1432,7 @@ public class Notification implements Parcelable
// Log.d("Notification", "has actions: " + mContentText);
big.setViewVisibility(R.id.actions, View.VISIBLE);
if (N>3) N=3;
+ big.removeAllViews(R.id.actions);
for (int i=0; i<N; i++) {
final RemoteViews button = generateActionButton(mActions.get(i));
//Log.d("Notification", "adding action " + i + ": " + mActions.get(i).title);