File tree Expand file tree Collapse file tree 2 files changed +5
-17
lines changed
packages/SystemUI/src/com/android/systemui/statusbar Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Original file line number Diff line number Diff 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 ));
Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments