From 51294c23a5ce360564b1971955ab8dae12f6aecf Mon Sep 17 00:00:00 2001 From: Jonathan Klee Date: Wed, 25 Sep 2024 22:13:56 +0200 Subject: [PATCH] Use system setting to maintain activation status of ntfy Indeed, since the preference fragment is part of the Settings app, we cannot use shared preference to share Ntfy activation status. --- app/src/main/AndroidManifest.xml | 2 ++ .../io/heckel/ntfy/service/SubscriberService.kt | 11 +++++++++-- .../ntfy/service/SubscriberServiceManager.kt | 14 ++++++++++---- .../java/io/heckel/ntfy/ui/PreferencesFragment.kt | 14 ++++++++------ 4 files changed, 29 insertions(+), 12 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 3fbe559..f19657a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -12,6 +12,8 @@ +