mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Create const for diagnostic tag.
This commit is contained in:
committed by
Benoit Marty
parent
6fe85dc579
commit
f4f623c417
+3
-2
@@ -46,7 +46,7 @@ class DefaultNotificationDisplayer(
|
|||||||
|
|
||||||
override fun displayDiagnosticNotification(notification: Notification): Boolean {
|
override fun displayDiagnosticNotification(notification: Notification): Boolean {
|
||||||
return showNotification(
|
return showNotification(
|
||||||
tag = "DIAGNOSTIC",
|
tag = TAG_DIAGNOSTIC,
|
||||||
id = NOTIFICATION_ID_DIAGNOSTIC,
|
id = NOTIFICATION_ID_DIAGNOSTIC,
|
||||||
notification = notification
|
notification = notification
|
||||||
)
|
)
|
||||||
@@ -54,12 +54,13 @@ class DefaultNotificationDisplayer(
|
|||||||
|
|
||||||
override fun dismissDiagnosticNotification() {
|
override fun dismissDiagnosticNotification() {
|
||||||
cancelNotification(
|
cancelNotification(
|
||||||
tag = "DIAGNOSTIC",
|
tag = TAG_DIAGNOSTIC,
|
||||||
id = NOTIFICATION_ID_DIAGNOSTIC
|
id = NOTIFICATION_ID_DIAGNOSTIC
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
private const val TAG_DIAGNOSTIC = "DIAGNOSTIC"
|
||||||
/* ==========================================================================================
|
/* ==========================================================================================
|
||||||
* IDs for notifications
|
* IDs for notifications
|
||||||
* ========================================================================================== */
|
* ========================================================================================== */
|
||||||
|
|||||||
Reference in New Issue
Block a user