|
@@ -10187,7 +10187,7 @@ public class MainActivity extends WpadActivity {
|
|
|
|
|
|
if(mSmartKeyRfDoorAPI!=null)
|
|
|
{
|
|
|
- String ret = mSmartKeyRfDoorAPI.SetSensorConfig((byte) 0x05, (byte)0x10);
|
|
|
+ String ret = mSmartKeyRfDoorAPI.SetSensorConfig((byte) 0x05, (byte)0x240);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -10269,7 +10269,7 @@ public class MainActivity extends WpadActivity {
|
|
|
|
|
|
if(mSmartKeyRfDoorAPI!=null)
|
|
|
{
|
|
|
- String ret = mSmartKeyRfDoorAPI.SetSensorConfig((byte) 0x05, (byte)0x10);
|
|
|
+ String ret = mSmartKeyRfDoorAPI.SetSensorConfig((byte) 0x05, (byte)0x240);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -10311,23 +10311,28 @@ public class MainActivity extends WpadActivity {
|
|
|
public void handleMessage(Message msg) {
|
|
|
Common.bRecordDelay = false;
|
|
|
|
|
|
- Log.d(TAG, "[recordDelayHandler] RecordDelay Init");
|
|
|
+ Log.d(TAG, "[recordDelayHandler] RecordDelay Init + CallingStatus : " +Common.bWallPadCallingLive);
|
|
|
|
|
|
if (cv_bStrangerVideoRecordUsage) {
|
|
|
if (cv_bStrangerUserVideoRecordUsage) {
|
|
|
|
|
|
- if (mSmartKeyRfDoorAPI != null) mSmartKeyRfDoorAPI.SetLEDmode(Common.SmartRFCamLEDMode.LED_AUTO_ON);
|
|
|
- else Log.w(TAG, "[recordDelayHandler] Status LED ON smartKeyRfDoorAPI is null!!");
|
|
|
+ if(!Common.bWallPadCallingLive)
|
|
|
+ {
|
|
|
+ if (mSmartKeyRfDoorAPI != null) mSmartKeyRfDoorAPI.SetLEDmode(Common.SmartRFCamLEDMode.LED_AUTO_ON);
|
|
|
+ else Log.w(TAG, "[recordDelayHandler] Status LED ON smartKeyRfDoorAPI is null!!");
|
|
|
|
|
|
- if (mSmartKeyRfDoorAPI != null) mSmartKeyRfDoorAPI.SetCAMERAmode(Common.SmartRFCamStatusMode.STATUS_AUTO_ON);
|
|
|
- else Log.w(TAG, "[recordDelayHandler] Status Auto ON smartKeyRfDoorAPI is null!!");
|
|
|
+ if (mSmartKeyRfDoorAPI != null) mSmartKeyRfDoorAPI.SetCAMERAmode(Common.SmartRFCamStatusMode.STATUS_AUTO_ON);
|
|
|
+ else Log.w(TAG, "[recordDelayHandler] Status Auto ON smartKeyRfDoorAPI is null!!");
|
|
|
|
|
|
-
|
|
|
- if(mSmartKeyRfDoorAPI!=null)
|
|
|
- {
|
|
|
- String ret = mSmartKeyRfDoorAPI.SetSensorConfig((byte) 0x05, (byte)0x01);
|
|
|
- Log.i(TAG, "[recordDelayHandler SenSorConfig] - Test Setting result = " + ret);
|
|
|
+
|
|
|
+ if(mSmartKeyRfDoorAPI!=null)
|
|
|
+ {
|
|
|
+ String ret = mSmartKeyRfDoorAPI.SetSensorConfig((byte) 0x05, (byte)0x01);
|
|
|
+ Log.i(TAG, "[recordDelayHandler SenSorConfig] - Test Setting result = " + ret);
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -10346,7 +10351,7 @@ public class MainActivity extends WpadActivity {
|
|
|
filter.addAction(Common.BR_RECORD_STOP);
|
|
|
filter.addAction(Common.BR_RECORD_DELAY);
|
|
|
filter.addAction(Common.BR_RECORD_NOT_USE);
|
|
|
-
|
|
|
+ filter.addAction(Common.BR_RECORD_DELAY_INIT);
|
|
|
mContext.registerReceiver(StrangeRecordBroadcastReceiver, filter);
|
|
|
} catch (RuntimeException re) {
|
|
|
LogUtil.errorLogInfo("", TAG, re);
|
|
@@ -10381,6 +10386,16 @@ public class MainActivity extends WpadActivity {
|
|
|
{
|
|
|
RecordNotUse(false);
|
|
|
}
|
|
|
+ else if(intent.getAction().equals(Common.BR_RECORD_DELAY_INIT))
|
|
|
+ {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ Log.d(TAG, "Recrod Delay Init Config, RecordDelay Status :" + Common.bRecordDelay);
|
|
|
+ if(!Common.bRecordDelay)
|
|
|
+ RecordNotUse(true);
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
}
|