diff options
author | Selim Cinek <cinek@google.com> | 2014-11-12 16:13:05 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-11-12 16:13:07 +0000 |
commit | 9852ecd6378be67c36010b415cffbc852e6a265f (patch) | |
tree | 5db5592a27aa4efa4538c8da19ece30550871132 /packages | |
parent | 29685c2fde7b3c3cc57994e61915321902b16246 (diff) | |
parent | a37774f098a5204947ff4b4787c4b753bb9016db (diff) | |
download | frameworks_base-9852ecd6378be67c36010b415cffbc852e6a265f.zip frameworks_base-9852ecd6378be67c36010b415cffbc852e6a265f.tar.gz frameworks_base-9852ecd6378be67c36010b415cffbc852e6a265f.tar.bz2 |
Merge "Fixed a bug where the clearable flag was set inconsistently" into lmp-mr1-dev
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java | 2 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java | 13 |
2 files changed, 2 insertions, 13 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java index 725a1a8..5613a6e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java @@ -1486,8 +1486,6 @@ public abstract class BaseStatusBar extends SystemUI implements entry.autoRedacted = true; } - row.setClearable(sbn.isClearable()); - if (MULTIUSER_DEBUG) { TextView debug = (TextView) row.findViewById(R.id.debug_info); if (debug != null) { diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java index f8332ea..7345440 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java @@ -118,6 +118,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { public void setStatusBarNotification(StatusBarNotification statusBarNotification) { mStatusBarNotification = statusBarNotification; + updateVetoButton(); } public StatusBarNotification getStatusBarNotification() { @@ -303,17 +304,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { * @return Can the underlying notification be cleared? */ public boolean isClearable() { - return mClearable; - } - - /** - * Set whether the notification can be cleared. - * - * @param clearable - */ - public void setClearable(boolean clearable) { - mClearable = clearable; - updateVetoButton(); + return mStatusBarNotification != null && mStatusBarNotification.isClearable(); } /** |