modem, callscreen, ring: fix DSDS incoming ring hangup/volume and add Primary/Secondary GW SIM swap UI
This commit is contained in:
1 parent
9a079e1068
commit
7927bacb67
18 files changed
+280
-84
No files matched your search
@@ -93,7 +93,8 @@ pickup() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
if ! mmcli -m any -o "$CALLID" --accept; then
|
||||
if ! mmcli -m any -o "$CALLID" --accept 2>/dev/null && \
|
||||
! doas -n /usr/libexec/msm-modem-uim-selection call-accept "$CALLID" >/dev/null 2>&1; then
|
||||
sxmo_notify_user.sh --urgency=critical "We failed to accept the call"
|
||||
return 1
|
||||
fi
|
||||
@@ -152,7 +153,8 @@ hangup() {
|
||||
sxmo_hook_discard.sh
|
||||
fi
|
||||
|
||||
if ! mmcli -m any -o "$CALLID" --hangup; then
|
||||
if ! mmcli -m any -o "$CALLID" --hangup 2>/dev/null && \
|
||||
! doas -n /usr/libexec/msm-modem-uim-selection call-hangup "$CALLID" >/dev/null 2>&1; then
|
||||
# we ignore already closed calls
|
||||
if list_active_calls | grep -q "/$CALLID "; then
|
||||
sxmo_notify_user.sh --urgency=critical "We failed to hangup the call"
|
||||
|
||||
Reference in new issue
Block a user