mirror of
https://github.com/markqvist/Sideband.git
synced 2025-11-30 04:06:39 -05:00
Added voice call notifications
This commit is contained in:
parent
cf0d64a746
commit
6b09c6b262
3 changed files with 75 additions and 58 deletions
|
|
@ -1274,8 +1274,11 @@ class SidebandApp(MDApp):
|
|||
data = extras.getString("intent_action", "undefined")
|
||||
if data.startswith("conversation."):
|
||||
conv_hexhash = bytes.fromhex(data.replace("conversation.", ""))
|
||||
def cb(dt):
|
||||
self.open_conversation(conv_hexhash)
|
||||
def cb(dt): self.open_conversation(conv_hexhash)
|
||||
Clock.schedule_once(cb, 0.2)
|
||||
|
||||
elif data.startswith("incoming_call"):
|
||||
def cb(dt): self.voice_action()
|
||||
Clock.schedule_once(cb, 0.2)
|
||||
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue