|
@@ -5945,11 +5945,26 @@ public class MainActivity extends WpadActivity {
|
|
|
// Log.i(TAG, "[sendWallPadCallLiveBR_ACK] ===== START =====");
|
|
|
Intent mIntent = new Intent();
|
|
|
mIntent.setAction(Declare.BR.BR_ACK_WALLPADCALL_LIVE);
|
|
|
- //jglee - 현재 현관문 앱을 실행하고 있는지 여부 파악하기 위해(메인에서 현관문은 3초후 변수가 원래대로 돌아옴)
|
|
|
boolean isFront = false;
|
|
|
- if(mCallController!=null && mCallController.mCallInfo.getFRONT() != CALLSTATUS.IDLE)
|
|
|
- isFront = true;
|
|
|
- mIntent.putExtra("isFront", isFront);
|
|
|
+ boolean isCalling = false;
|
|
|
+
|
|
|
+ // jglee - 2022.07.29 통화 시나리오 변경 통화중, 거동수상자 알람 오면 무조건 버려야 함
|
|
|
+ // jglee - 2022.07.29 월패드 메인에서 현재 통화중인지 여부를 판단하기 위해 해당 인텐트 추가
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+
|
|
|
+// if(mCallController!=null && mCallController.mCallInfo.getFRONT() != CALLSTATUS.IDLE)
|
|
|
+// isFront = true;
|
|
|
+
|
|
|
+// mIntent.putExtra("isFront", isFront);
|
|
|
+ mIntent.putExtra("isCalling", isCalling);
|
|
|
+
|
|
|
getApplicationContext().sendBroadcast(mIntent);
|
|
|
} catch (RuntimeException re) {
|
|
|
LogUtil.errorLogInfo("", TAG, re);
|