Clear notification popups when they're dismissed on the phone, and avoid showing some notifications that are spurious

This commit is contained in:
James Babcock committed 2026-10-14 02:05:23 -07:00
1 parent 42c2d5cd55
commit bf92a5a2ce
17 files changed
+422 -70

No files matched your search

+5
View File
@@ -216,6 +216,11 @@ export class SingleNotificationLayer implements Layer {
private readonly options: SingleNotificationLayerOptions,
) {}
/** Whether the layer stays up once its notification is gone: the disable-source confirmation dismisses it first. */
outlivesNotification(): boolean {
return this.confirmation !== null;
}
paint(ctx: LayerContext, paintBelow: PaintBelow): GrayImage {
if (this.confirmation) return this.paintConfirmation(ctx);
const font = getDefaultSmallFont();