am 195ba504: Merge "Clear out any existing buttons before adding the set of requested actions." into jb-dev

* commit '195ba5047cec4d249d5408e75fb04696941655c0':
  Clear out any existing buttons before adding the set of requested actions.
This commit is contained in:
Chris Wren
2012-05-09 01:46:32 -07:00
committed by Android Git Automerger

View File

@@ -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);