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

Commit 113045ab authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Fix bug swiping away NO_CLEAR notifications.

Bug: 5121507
Change-Id: I798686cfc8506805298e1481a3d603ce700e12f4
parent fd19906b
Loading
Loading
Loading
Loading
+4 −11
Original line number Diff line number Diff line
@@ -759,13 +759,11 @@ public class PhoneStatusBar extends StatusBar {
                        }
                    }
                });
        } else {
            if ((notification.notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) {
                vetoButton.setVisibility(View.INVISIBLE);
        } else {
            vetoButton.setVisibility(View.GONE);
        }
        }
        vetoButton.setContentDescription(mContext.getString(
                R.string.accessibility_remove_notification));

        // the large icon
        ImageView largeIcon = (ImageView)row.findViewById(R.id.large_icon);
@@ -956,14 +954,9 @@ public class PhoneStatusBar extends StatusBar {
                        }
                    }
                });
        } else {
            if ((sbn.notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) {
                vetoButton.setVisibility(View.INVISIBLE);
                vetoButton.setContentDescription("VETO");
        } else {
            vetoButton.setVisibility(View.GONE);
        }
        }
        vetoButton.setContentDescription(mContext.getString(
                R.string.accessibility_remove_notification));

+1 −6
Original line number Diff line number Diff line
@@ -1746,14 +1746,9 @@ public class TabletStatusBar extends StatusBar implements
                        }
                    }
                });
        } else {
            if ((sbn.notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) {
                vetoButton.setVisibility(View.INVISIBLE);
                vetoButton.setContentDescription("VETO");
        } else {
            vetoButton.setVisibility(View.GONE);
        }
        }
        vetoButton.setContentDescription(mContext.getString(
                R.string.accessibility_remove_notification));