Currently, the persistent notification uses one notification channel, called `PERSISTENT`, no matter whether devices are connected or not: https://invent.kde.org/network/kdeconnect-android/-/blob/master/src/org/kde/kdeconnect/BackgroundService.java#L337 This prevents users from choosing to display the notification when devices are connected, and hiding it when no devices are connected. To solve this, it would be nice to split this up into two notification channels.
PR for this: https://invent.kde.org/network/kdeconnect-android/-/merge_requests/299
Git commit 9f9b565ce6a25f642e45312ebaa61c3962c95024 by Philip Cohn-Cort, on behalf of Yannik Sembritzki. Committed on 31/10/2022 at 21:03. Pushed by philipc into branch 'master'. Separate persistent notification channel based on whether devices are connected This allows users to selectively disable the persistent notification when no devices are connected. M +2 -1 res/values/strings.xml M +7 -1 src/org/kde/kdeconnect/BackgroundService.java M +12 -7 src/org/kde/kdeconnect/Helpers/NotificationHelper.java https://invent.kde.org/network/kdeconnect-android/commit/9f9b565ce6a25f642e45312ebaa61c3962c95024