Quellcode durchsuchen

[WallPadSecurity]
1. 거동 수상자 설정 변경 신호 타이밍 변경
- DB 정보 확인 후, 해당 정보 전송

jglee vor 2 Jahren
Ursprung
Commit
4357277e9d

+ 7 - 3
WallPadSecurity/src/main/java/kr/co/icontrols/wallpadsecurity/screen/PopupSmartIOTCam.java

@@ -444,9 +444,6 @@ public class PopupSmartIOTCam extends WpadScreen {
 //                    cam = ctrlSmartIOTCamStatusMode(Common.SmartRFCamStatusMode.STATUS_AUTO_ON);
 //                    led = ctrlSmartIOTCamLEDMode(Common.SmartRFCamLEDMode.LED_AUTO_ON);
 
-                    Intent Newintent = new Intent();
-                    Newintent.setAction("StrangeRecordDelayInit");
-                    mContext.sendBroadcast(Newintent);
                     cam = 1;
                     led = 1;
 
@@ -656,6 +653,13 @@ public class PopupSmartIOTCam extends WpadScreen {
                     SetIOTCamConfig();
                     
                     if (SaveDBConfigValue()) {
+                        //DB 설정 저장 후, 초기화 신호 던져야 함
+                        if(bCurrentRecordingSet)
+                        {
+                            Intent Newintent = new Intent();
+                            Newintent.setAction("StrangeRecordDelayInit");
+                            mContext.sendBroadcast(Newintent);
+                        }
                         Sound().Play(WpadSound.SND.effect.TOUCH_LATCHED);
                         finish();
                    } else {