Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a37774f0 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where the clearable flag was set inconsistently

This could lead to undismissable notifications.

Bug: 17758698
Change-Id: I60ccbe24686c5b8bc46bfb52e590cef71ed7a190
parent 72e32fd5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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) {
+2 −11
Original line number Diff line number Diff line
@@ -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();
    }

    /**