Skip to content

Commit 113045a

Browse files
committed
Fix bug swiping away NO_CLEAR notifications.
Bug: 5121507 Change-Id: I798686cfc8506805298e1481a3d603ce700e12f4
1 parent fd19906 commit 113045a

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -760,12 +760,10 @@ public void onClick(View v) {
760760
}
761761
});
762762
} else {
763-
if ((notification.notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) {
764-
vetoButton.setVisibility(View.INVISIBLE);
765-
} else {
766-
vetoButton.setVisibility(View.GONE);
767-
}
763+
vetoButton.setVisibility(View.GONE);
768764
}
765+
vetoButton.setContentDescription(mContext.getString(
766+
R.string.accessibility_remove_notification));
769767

770768
// the large icon
771769
ImageView largeIcon = (ImageView)row.findViewById(R.id.large_icon);
@@ -957,12 +955,7 @@ public void onClick(View v) {
957955
}
958956
});
959957
} else {
960-
if ((sbn.notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) {
961-
vetoButton.setVisibility(View.INVISIBLE);
962-
vetoButton.setContentDescription("VETO");
963-
} else {
964-
vetoButton.setVisibility(View.GONE);
965-
}
958+
vetoButton.setVisibility(View.GONE);
966959
}
967960
vetoButton.setContentDescription(mContext.getString(
968961
R.string.accessibility_remove_notification));

packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,12 +1747,7 @@ public void onClick(View v) {
17471747
}
17481748
});
17491749
} else {
1750-
if ((sbn.notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) {
1751-
vetoButton.setVisibility(View.INVISIBLE);
1752-
vetoButton.setContentDescription("VETO");
1753-
} else {
1754-
vetoButton.setVisibility(View.GONE);
1755-
}
1750+
vetoButton.setVisibility(View.GONE);
17561751
}
17571752
vetoButton.setContentDescription(mContext.getString(
17581753
R.string.accessibility_remove_notification));

0 commit comments

Comments
 (0)