Parent: aa8d69512c174e1e8fffa222d84ef4898991e8c6
Author: Szymon Janc <szymon.janc@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2015-02-20 17:25:09
Tree: d7f3e22b4459afb798882bb76e7270bf59ddb7f4
android/handsfree: Fix no indicators after rejected incoming call On KitKat there were some bogus phone_state_change calls after incoming call was rejected from the phone: active=0 hold=0 state=idle active=0 hold=0 state=incoming active=0 hold=0 state=idle active=0 hold=0 state=idle On Lollipop this seems to be fixed and after call is rejected we only get single call with state idle: active=0 hold=0 state=idle So simply reverting workaround commit "Track if incoming call is being rejected" would break KK. Instead, add short timeout after incoming call was rejected. Durring that period we ignore any phone state change to 'incoming' state. If we get any other state change (ie. outgoing call) timer is cleared.
Diffstat
| M | android/handsfree.c | | | 38 | ++++++++++++++++++++++++++++++++- - - - - - |
1 files changed, 32 insertions(+), 6 deletions(-)