Loading core/java/android/provider/Settings.java +7 −0 Original line number Diff line number Diff line Loading @@ -6780,6 +6780,13 @@ public final class Settings { */ public static final String CAMERA_LIFT_TRIGGER_ENABLED = "camera_lift_trigger_enabled"; /** * The default enable state of the camera lift trigger. * * @hide */ public static final int CAMERA_LIFT_TRIGGER_ENABLED_DEFAULT = 1; /** * Whether the assist gesture should be enabled. * Loading services/core/java/com/android/server/GestureLauncherService.java +2 −1 Original line number Diff line number Diff line Loading @@ -320,7 +320,8 @@ public class GestureLauncherService extends SystemService { public static boolean isCameraLiftTriggerSettingEnabled(Context context, int userId) { return isCameraLiftTriggerEnabled(context.getResources()) && (Settings.Secure.getIntForUser(context.getContentResolver(), Settings.Secure.CAMERA_LIFT_TRIGGER_ENABLED, 0, userId) != 0); Settings.Secure.CAMERA_LIFT_TRIGGER_ENABLED, Settings.Secure.CAMERA_LIFT_TRIGGER_ENABLED_DEFAULT, userId) != 0); } /** Loading Loading
core/java/android/provider/Settings.java +7 −0 Original line number Diff line number Diff line Loading @@ -6780,6 +6780,13 @@ public final class Settings { */ public static final String CAMERA_LIFT_TRIGGER_ENABLED = "camera_lift_trigger_enabled"; /** * The default enable state of the camera lift trigger. * * @hide */ public static final int CAMERA_LIFT_TRIGGER_ENABLED_DEFAULT = 1; /** * Whether the assist gesture should be enabled. * Loading
services/core/java/com/android/server/GestureLauncherService.java +2 −1 Original line number Diff line number Diff line Loading @@ -320,7 +320,8 @@ public class GestureLauncherService extends SystemService { public static boolean isCameraLiftTriggerSettingEnabled(Context context, int userId) { return isCameraLiftTriggerEnabled(context.getResources()) && (Settings.Secure.getIntForUser(context.getContentResolver(), Settings.Secure.CAMERA_LIFT_TRIGGER_ENABLED, 0, userId) != 0); Settings.Secure.CAMERA_LIFT_TRIGGER_ENABLED, Settings.Secure.CAMERA_LIFT_TRIGGER_ENABLED_DEFAULT, userId) != 0); } /** Loading