resume song only when the incoming call ends

This commit is contained in:
tibbi 2016-02-19 20:16:29 +01:00
parent e1fe9734ac
commit e46e28e8f1

View file

@ -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);
}
}