diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index ee9aa41104bb7..7ba36e207d80b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -760,12 +760,10 @@ 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.setVisibility(View.GONE); } + vetoButton.setContentDescription(mContext.getString( + R.string.accessibility_remove_notification)); // the large icon ImageView largeIcon = (ImageView)row.findViewById(R.id.large_icon); @@ -957,12 +955,7 @@ 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.setVisibility(View.GONE); } vetoButton.setContentDescription(mContext.getString( R.string.accessibility_remove_notification)); diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java index 39011d37b2c93..c680c49fbc1c8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java @@ -1747,12 +1747,7 @@ 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.setVisibility(View.GONE); } vetoButton.setContentDescription(mContext.getString( R.string.accessibility_remove_notification));