Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c746bd4b9 | ||
|
|
e3231970a3 | ||
|
|
70806dcadc |
2 changed files with 3 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -57,3 +57,4 @@ proguard-project.txt
|
|||
# Android Studio/IDEA
|
||||
*.iml
|
||||
.idea
|
||||
centralcloud-release.keystore
|
||||
|
|
|
|||
|
|
@ -380,7 +380,9 @@ class NotificationService(val context: Context) {
|
|||
PRIORITY_LOW -> NotificationChannel(channelId, context.getString(R.string.common_priority_low_name), NotificationManager.IMPORTANCE_LOW)
|
||||
PRIORITY_HIGH -> {
|
||||
val channel = NotificationChannel(channelId, context.getString(R.string.common_priority_high_name), NotificationManager.IMPORTANCE_HIGH)
|
||||
channel.enableLights(true)
|
||||
channel.enableVibration(true)
|
||||
channel.setBypassDnd(true) // Bypass DND but do not play insistent alarm
|
||||
channel.vibrationPattern = longArrayOf(
|
||||
pause, 100, pause, 100, pause, 100,
|
||||
pause, 2000
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue