mirror of
https://github.com/markqvist/Sideband.git
synced 2026-04-27 14:20:38 +00:00
Improved call notification visibility
This commit is contained in:
parent
04a09623a9
commit
7a89c3ed79
1 changed files with 4 additions and 1 deletions
|
|
@ -89,7 +89,10 @@ class SidebandService():
|
|||
if context_id in silent_contexts: silent = True
|
||||
else: silent = False
|
||||
|
||||
self.notification_channel = NotificationChannel(channel_id, channel_name, NotificationManager.IMPORTANCE_DEFAULT)
|
||||
if context_id == "incoming_call": channel_importance = NotificationManager.IMPORTANCE_HIGH
|
||||
else: channel_importance = NotificationManager.IMPORTANCE_DEFAULT
|
||||
|
||||
self.notification_channel = NotificationChannel(channel_id, channel_name, channel_importance)
|
||||
self.notification_channel.enableVibration(True)
|
||||
if not silent: self.notification_channel.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION), None)
|
||||
else: self.notification_channel.setSound(None, None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue