|
@@ -83,7 +83,7 @@ public class PhoneStateReceiver extends BroadcastReceiver {
|
|
|
if (state.equalsIgnoreCase(TelephonyManager.EXTRA_STATE_IDLE)) {
|
|
|
//待机中
|
|
|
//Log.d(TAG, "PhoneStateReceiver idle");
|
|
|
- if (Constants.Companion.getPhoneState() == Constants.PHONE_OUTGOING) {
|
|
|
+ if (Constants.Companion.getPhoneState() != Constants.PHONE_IDLE) {
|
|
|
//发送tcp
|
|
|
/*if (Constants.Companion.getPhoneDataVO() != null) {
|
|
|
TcpModel tcpModel = PhoneUtil.phoneHandoff(Constants.Companion.getDeviceId(), Constants.Companion.getPhoneDataVO());
|
|
@@ -96,9 +96,7 @@ public class PhoneStateReceiver extends BroadcastReceiver {
|
|
|
}
|
|
|
});
|
|
|
}*/
|
|
|
- }
|
|
|
|
|
|
- if (extraIncomingNumber != null) {
|
|
|
//通话结束,上传通话记录
|
|
|
EventBus.getDefault().post(new MessageEvent("call_end", Constants.EVENT_CALL_END));
|
|
|
}
|