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

Commit 8dbdee5b authored by Daniel Sandler's avatar Daniel Sandler Committed by Android (Google) Code Review
Browse files

Merge "Fix bug swiping away NO_CLEAR notifications."

parents 6c048260 113045ab
Loading
Loading
Loading
Loading
+4 −11
Original line number Original line 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 {
        } else {
            vetoButton.setVisibility(View.GONE);
            vetoButton.setVisibility(View.GONE);
        }
        }
        }
        vetoButton.setContentDescription(mContext.getString(
                R.string.accessibility_remove_notification));


        // the large icon
        // the large icon
        ImageView largeIcon = (ImageView)row.findViewById(R.id.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 {
        } else {
            vetoButton.setVisibility(View.GONE);
            vetoButton.setVisibility(View.GONE);
        }
        }
        }
        vetoButton.setContentDescription(mContext.getString(
        vetoButton.setContentDescription(mContext.getString(
                R.string.accessibility_remove_notification));
                R.string.accessibility_remove_notification));


+1 −6
Original line number Original line 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 {
        } else {
            vetoButton.setVisibility(View.GONE);
            vetoButton.setVisibility(View.GONE);
        }
        }
        }
        vetoButton.setContentDescription(mContext.getString(
        vetoButton.setContentDescription(mContext.getString(
                R.string.accessibility_remove_notification));
                R.string.accessibility_remove_notification));