am a89c8fe7: am 9852ecd6: Merge "Fixed a bug where the clearable flag was set inconsistently" into lmp-mr1-dev
* commit 'a89c8fe7ee9b1a53f97ffc94d14a99d108e08062': Fixed a bug where the clearable flag was set inconsistently
This commit is contained in:
@@ -1486,8 +1486,6 @@ public abstract class BaseStatusBar extends SystemUI implements
|
|||||||
entry.autoRedacted = true;
|
entry.autoRedacted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
row.setClearable(sbn.isClearable());
|
|
||||||
|
|
||||||
if (MULTIUSER_DEBUG) {
|
if (MULTIUSER_DEBUG) {
|
||||||
TextView debug = (TextView) row.findViewById(R.id.debug_info);
|
TextView debug = (TextView) row.findViewById(R.id.debug_info);
|
||||||
if (debug != null) {
|
if (debug != null) {
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
|
|||||||
|
|
||||||
public void setStatusBarNotification(StatusBarNotification statusBarNotification) {
|
public void setStatusBarNotification(StatusBarNotification statusBarNotification) {
|
||||||
mStatusBarNotification = statusBarNotification;
|
mStatusBarNotification = statusBarNotification;
|
||||||
|
updateVetoButton();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StatusBarNotification getStatusBarNotification() {
|
public StatusBarNotification getStatusBarNotification() {
|
||||||
@@ -303,17 +304,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
|
|||||||
* @return Can the underlying notification be cleared?
|
* @return Can the underlying notification be cleared?
|
||||||
*/
|
*/
|
||||||
public boolean isClearable() {
|
public boolean isClearable() {
|
||||||
return mClearable;
|
return mStatusBarNotification != null && mStatusBarNotification.isClearable();
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set whether the notification can be cleared.
|
|
||||||
*
|
|
||||||
* @param clearable
|
|
||||||
*/
|
|
||||||
public void setClearable(boolean clearable) {
|
|
||||||
mClearable = clearable;
|
|
||||||
updateVetoButton();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user