Summary: | Persistent apps should not show up | ||
---|---|---|---|
Product: | [Applications] kdeconnect | Reporter: | Ulrich Lichtenegger <ulilicht> |
Component: | android-application | Assignee: | Albert Vaca Cintora <albertvaka> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arthur, damonhill82, rick |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdeconnect-android/9bbe2908edeb305dd6e8a331726d364edc4750ba | Version Fixed In: |
Description
Ulrich Lichtenegger
2013-10-05 14:14:31 UTC
That will be an option when plugins have options, but I still have to investigate how to do it. I'd suggest to check for the proper flag from: statusBarNotification.getNotification().flags The flags for such apps (if correctly implemented) should be one of these: - Notification.FLAG_FOREGROUND_SERVICE - Notification.FLAG_ONGOING_EVENT (http://developer.android.com/reference/android/app/Notification.html) But i need to check against a real case to be sure. It seems to me that KC already knows which ones are persistent, because they have dimmed 'X' against them in the widget drop-down. I.e. they're the non-dismissable ones. I suggest that by default, notifications with this state should not be displayed. Git commit 9bbe2908edeb305dd6e8a331726d364edc4750ba by Albert Vaca. Committed on 10/01/2014 at 18:29. Pushed by albertvaka into branch 'master'. We will only sync actual notifications from now on M +3 -2 src/main/java/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java http://commits.kde.org/kdeconnect-android/9bbe2908edeb305dd6e8a331726d364edc4750ba |