Skip to content

Commit

Permalink
Fix #152: Audio focus not abandoned after shake, stops working
Browse files Browse the repository at this point in the history
Fix "Silenced by shake" showing red on interrupted notification.
Fix shake listener not disabled after shake.
Bump version name: 1.4.2 -> 1.4.3-beta
  • Loading branch information
pilot51 committed Jan 9, 2025
1 parent cc4c76e commit 5d5e7c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ android {
applicationId = "com.pilot51.voicenotify"
minSdk = 21
targetSdk = 34
versionName = "1.4.2"
versionName = "1.4.3-beta"
versionCode = 32
vectorDrawables.useSupportLibrary = true
ksp {
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/java/com/pilot51/voicenotify/Service.kt
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,14 @@ class Service : NotificationListenerService() {
ttsQueueMutex.launchWithLock(ioScope) {
for (info in ttsQueue.values) {
info.addIgnoreReasons(IgnoreReason.SHAKE)
if (info == ttsQueue[speakingUtteranceId]) {
info.isInterrupted = true
}
NotifyList.updateInfo(info)
}
ttsQueue.clear()
}
shutdownTts()
onDoneSpeaking()
}
setInitialized(true)
}
Expand Down

0 comments on commit 5d5e7c6

Please sign in to comment.