|
@@ -5945,11 +5945,26 @@ public class MainActivity extends WpadActivity {
|
|
|
|
|
|
Intent mIntent = new Intent();
|
|
|
mIntent.setAction(Declare.BR.BR_ACK_WALLPADCALL_LIVE);
|
|
|
-
|
|
|
boolean isFront = false;
|
|
|
- if(mCallController!=null && mCallController.mCallInfo.getFRONT() != CALLSTATUS.IDLE)
|
|
|
- isFront = true;
|
|
|
- mIntent.putExtra("isFront", isFront);
|
|
|
+ boolean isCalling = false;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if(mCallController!=null)
|
|
|
+ {
|
|
|
+ if(mCallController.mCallInfo.getFRONT() != CALLSTATUS.IDLE) isCalling = true;
|
|
|
+ else if(mCallController.mCallInfo.getLOBBY() != CALLSTATUS.IDLE) isCalling = true;
|
|
|
+ else if(mCallController.mCallInfo.getPSTN() != CALLSTATUS.IDLE) isCalling = true;
|
|
|
+ else if(mCallController.mCallInfo.getGUARD() != CALLSTATUS.IDLE) isCalling = true;
|
|
|
+ else if(mCallController.mCallInfo.getRESI() != CALLSTATUS.IDLE) isCalling = true;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ mIntent.putExtra("isCalling", isCalling);
|
|
|
+
|
|
|
getApplicationContext().sendBroadcast(mIntent);
|
|
|
} catch (RuntimeException re) {
|
|
|
LogUtil.errorLogInfo("", TAG, re);
|