@@ -41,7 +41,6 @@ class NotificationRegistry @Inject constructor(
41
41
companion object {
42
42
43
43
// notification IDs
44
-
45
44
const val NOTIFY_VERBOSE_LOGGING = 1
46
45
const val NOTIFY_REFRESH_COLLECTIONS = 2
47
46
const val NOTIFY_DATABASE_CORRUPTED = 4
@@ -52,49 +51,50 @@ class NotificationRegistry @Inject constructor(
52
51
const val NOTIFY_TASKS_PROVIDER_TOO_OLD = 20
53
52
const val NOTIFY_PERMISSIONS = 21
54
53
54
+ }
55
55
56
- // notification channels
57
56
58
- /* *
59
- * For notifications that don't fit into another channel.
60
- */
61
- const val CHANNEL_GENERAL = " general"
57
+ // notification channel names, accessible only when instance (and thus the channels) has been created
62
58
63
- /* *
64
- * For debugging notifications. High priority because a debugging session
65
- * has been activated by the user and they should know all the time.
66
- *
67
- * Currently only used for the "verbose logging active" notification.
68
- */
69
- const val CHANNEL_DEBUG = " debug"
59
+ /* *
60
+ * For notifications that don't fit into another channel.
61
+ */
62
+ val CHANNEL_GENERAL = " general"
70
63
71
- /* *
72
- * Used to show progress, like that a service detection or WebDAV file access is running.
73
- */
74
- const val CHANNEL_STATUS = " status"
64
+ /* *
65
+ * For debugging notifications. High priority because a debugging session
66
+ * has been activated by the user and they should know all the time.
67
+ *
68
+ * Currently only used for the "verbose logging active" notification.
69
+ */
70
+ val CHANNEL_DEBUG = " debug"
75
71
76
- /* *
77
- * For sync-related notifications. Use the appropriate sub-channels for different types of sync problems .
78
- */
79
- private const val CHANNEL_SYNC = " sync "
72
+ /* *
73
+ * Used to show progress, like that a service detection or WebDAV file access is running .
74
+ */
75
+ val CHANNEL_STATUS = " status "
80
76
81
- /* *
82
- * For sync errors that are not IO errors. Shown as normal priority .
83
- */
84
- const val CHANNEL_SYNC_ERRORS = " syncProblems "
77
+ /* *
78
+ * For sync-related notifications. Use the appropriate sub-channels for different types of sync problems .
79
+ */
80
+ val CHANNEL_SYNC = " sync "
85
81
86
- /* *
87
- * For sync warnings . Shown as low priority.
88
- */
89
- const val CHANNEL_SYNC_WARNINGS = " syncWarnings "
82
+ /* *
83
+ * For sync errors that are not IO errors . Shown as normal priority.
84
+ */
85
+ val CHANNEL_SYNC_ERRORS = " syncProblems "
90
86
91
- /* *
92
- * For sync IO errors. Shown as minimal priority because they might go away automatically, for instance
93
- * when the connection is working again.
94
- */
95
- const val CHANNEL_SYNC_IO_ERRORS = " syncIoErrors"
87
+ /* *
88
+ * For sync warnings. Shown as low priority.
89
+ */
90
+ val CHANNEL_SYNC_WARNINGS = " syncWarnings"
91
+
92
+ /* *
93
+ * For sync IO errors. Shown as minimal priority because they might go away automatically, for instance
94
+ * when the connection is working again.
95
+ */
96
+ val CHANNEL_SYNC_IO_ERRORS = " syncIoErrors"
96
97
97
- }
98
98
99
99
init {
100
100
createChannels()
0 commit comments