forked from Blendman974/faceclaw
Clear notification popups when they're dismissed on the phone, and avoid showing some notifications that are spurious
This commit is contained in:
1 parent
42c2d5cd55
commit
bf92a5a2ce
17 files changed
+422
-70
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user