Fixed a bug where the clearable flag was set inconsistently
This could lead to undismissable notifications. Bug: 17758698 Change-Id: I60ccbe24686c5b8bc46bfb52e590cef71ed7a190
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user