From bcec43769be16fe041a85975d0772bead9958c32 Mon Sep 17 00:00:00 2001 From: althafvly Date: Wed, 3 Jul 2024 19:50:14 +0530 Subject: [PATCH] mute notifications for ntfy --- app/src/main/java/io/heckel/ntfy/ui/MainActivity.kt | 2 +- app/src/main/java/io/heckel/ntfy/up/BroadcastReceiver.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/heckel/ntfy/ui/MainActivity.kt b/app/src/main/java/io/heckel/ntfy/ui/MainActivity.kt index aa3bef6..25d1cdf 100644 --- a/app/src/main/java/io/heckel/ntfy/ui/MainActivity.kt +++ b/app/src/main/java/io/heckel/ntfy/ui/MainActivity.kt @@ -217,7 +217,7 @@ class MainActivity : AppCompatActivity(), ActionMode.Callback, AddFragment.Subsc topic = defaultTopic, instant = true, dedicatedChannels = false, - mutedUntil = 0, + mutedUntil = Repository.MUTED_UNTIL_FOREVER, minPriority = Repository.MIN_PRIORITY_USE_GLOBAL, autoDelete = Repository.AUTO_DELETE_USE_GLOBAL, insistent = Repository.INSISTENT_MAX_PRIORITY_USE_GLOBAL, diff --git a/app/src/main/java/io/heckel/ntfy/up/BroadcastReceiver.kt b/app/src/main/java/io/heckel/ntfy/up/BroadcastReceiver.kt index e30f0ed..778d43a 100644 --- a/app/src/main/java/io/heckel/ntfy/up/BroadcastReceiver.kt +++ b/app/src/main/java/io/heckel/ntfy/up/BroadcastReceiver.kt @@ -84,7 +84,7 @@ class BroadcastReceiver : android.content.BroadcastReceiver() { topic = topic, instant = true, // No Firebase, always instant! dedicatedChannels = false, - mutedUntil = 0, + mutedUntil = Repository.MUTED_UNTIL_FOREVER, minPriority = Repository.MIN_PRIORITY_USE_GLOBAL, autoDelete = Repository.AUTO_DELETE_USE_GLOBAL, insistent = Repository.INSISTENT_MAX_PRIORITY_USE_GLOBAL,