Android Framework之默认禁止自动旋屏

2018-06-15  本文已影响26人  h4de5
-    <bool name="config_allowAllRotations">true</bool>
+    <bool name="config_allowAllRotations">false</bool>
     public static boolean isCameraDoubleTapPowerSettingEnabled(Context context, int userId) {
         return isCameraDoubleTapPowerEnabled(context.getResources())
                 && (Settings.Secure.getIntForUser(context.getContentResolver(),
-                        Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, 0, userId) == 0);
+                        Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, 1, userId) == 0);
     }
上一篇下一篇

猜你喜欢

热点阅读