Update the proximity lock status bar icon when started/stopped

This commit is contained in:
Willow Barraco
2023-12-24 11:58:34 +01:00
parent 1522fd4128
commit 278d896eaa
2 changed files with 3 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ checkforfinishedcalls() {
sxmo_vibrate 1000 "${SXMO_VIBRATE_STRENGTH:-1}" & sxmo_vibrate 1000 "${SXMO_VIBRATE_STRENGTH:-1}" &
sxmo_jobs.sh stop incall_menu sxmo_jobs.sh stop incall_menu
sxmo_jobs.sh stop proximity_lock sxmo_jobs.sh stop proximity_lock
sxmo_hook_statusbar.sh state &
if ! sxmo_modemaudio.sh reset_audio; then if ! sxmo_modemaudio.sh reset_audio; then
sxmo_notify_user.sh --urgency=critical "We failed to reset call audio" sxmo_notify_user.sh --urgency=critical "We failed to reset call audio"
@@ -140,6 +141,7 @@ checkforincomingcalls() {
printf %b "$TIME\tcall_ring\t$INCOMINGNUMBER\n" >> "$SXMO_LOGDIR/modemlog.tsv" printf %b "$TIME\tcall_ring\t$INCOMINGNUMBER\n" >> "$SXMO_LOGDIR/modemlog.tsv"
sxmo_jobs.sh start proximity_lock sxmo_proximitylock.sh sxmo_jobs.sh start proximity_lock sxmo_proximitylock.sh
sxmo_hook_statusbar.sh state &
# If we already got an active call # If we already got an active call
if sxmo_modemcall.sh list_active_calls \ if sxmo_modemcall.sh list_active_calls \

View File

@@ -53,6 +53,7 @@ EOF
fi fi
sxmo_jobs.sh start proximity_lock sxmo_proximitylock.sh sxmo_jobs.sh start proximity_lock sxmo_proximitylock.sh
sxmo_hook_statusbar.sh state &
sxmo_jobs.sh start incall_menu sxmo_modemcall.sh incall_menu sxmo_jobs.sh start incall_menu sxmo_modemcall.sh incall_menu
} }