resume song only when the incoming call ends
This commit is contained in:
parent
e1fe9734ac
commit
e46e28e8f1
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ public class IncomingCallReceiver extends PhoneStateListener {
|
|||
|
||||
if (state == TelephonyManager.CALL_STATE_RINGING) {
|
||||
Utils.sendIntent(cxt, Constants.CALL_START);
|
||||
} else if (state == TelephonyManager.CALL_STATE_IDLE || state == TelephonyManager.CALL_STATE_OFFHOOK) {
|
||||
} else if (state == TelephonyManager.CALL_STATE_IDLE) {
|
||||
Utils.sendIntent(cxt, Constants.CALL_STOP);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue