介绍
在设置菜单的手势界面里,快速打开相机是默认开启的,此功能当开启时连续点击两次电源键会打开相机,现在客户需要默认关闭。
效果展示
修改
<!-- Allow the gesture to double tap the power button twice to start the camera while the device
is non-interactive. -->
<bool name="config_cameraDoubleTapPowerGestureEnabled">true</bool>
/**
* Whether the camera launch gesture to double tap the power button when the screen is off
* should be disabled.
*
* @hide
*/
@Readable
public static final String CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED =
"camera_double_tap_power_gesture_disabled";
<!--soda water.20231229 default close double camera -->
<integer name="camera_double_disable">1</integer>
private void loadSecureSettings(SQLiteDatabase db) {
SQLiteStatement stmt = null;
try {
//...略
//*/soda water.20231229 default close double camera
loadIntegerSetting(stmt, Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED,
R.integer.camera_double_disable);
//*/
}
}