-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect calls in 3rd party apps, allow speech while ringing
Use audio mode to detect calls in third party apps. API 31+ (Android 12+): - Listen for audio mode changes instead of phone state changes for interrupting speech in progress. - Don't use phone state at all, removing READ_PHONE_STATE permission. API < 31: - Use PhoneStateListener instead of receiver. - To differentiate ringing from in-call, use phone state instead of TelecomManager.isInCall. Regression: 870b1a3
- Loading branch information
Showing
2 changed files
with
80 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters