diff options
author | Chris Wren <cwren@android.com> | 2012-05-08 07:34:12 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-05-08 07:34:12 -0700 |
commit | 195ba5047cec4d249d5408e75fb04696941655c0 (patch) | |
tree | 52fe93bd8f2bb30a1b60e7781ae63d6d4ed0c40a /core/java/android/app | |
parent | 407f2fdcfe1724bda09620e0e1e4ad48f242c04d (diff) | |
parent | 2c22eb0a49b369767eaa4e04c1727f947cfdec13 (diff) | |
download | frameworks_base-195ba5047cec4d249d5408e75fb04696941655c0.zip frameworks_base-195ba5047cec4d249d5408e75fb04696941655c0.tar.gz frameworks_base-195ba5047cec4d249d5408e75fb04696941655c0.tar.bz2 |
Merge "Clear out any existing buttons before adding the set of requested actions." into jb-dev
Diffstat (limited to 'core/java/android/app')
-rw-r--r-- | core/java/android/app/Notification.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 0d76877..f962259 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -1436,6 +1436,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); |