Closed climategadgets closed 3 years ago
I'm afraid the API I'm using is only notifying me on these options: TelephonyManager.CALL_STATE_IDLE, TelephonyManager.CALL_STATE_RINGING, or TelephonyManager.CALL_STATE_OFFHOOK.
When call state changes to something different from CALL_STATE_IDLE, Squeezer stops the music.
There is an alternative API AudioManager, which among other things also supports VOIP Call such as Skype and Facebook messager. But Squezer does not play music on it's own, it is a remote control for LMS, so we don't own the audio on the phone.so I don't think we can use that.
I'm afraid your only options are to disable this feature in Squeezer (3-dot menu in the top bar, and then settings) or live with the music pausing on on "ghost" calls.
Looks like there's a filter somewhere between TelephonyManager.CALL_STATE_RINGING
and the UI which never gets it.
Well, Android is evolving, so maybe they do something about that in the future. Feel free to close this for now.
Ok, closing this. Thanks anyway for the feedback.
The "Pause music on call" feature stops the playback when it shouldn't.
It is unclear if this is only happening with incoming calls redirected to the phone by Google Voice, or with all incoming calls.