OSDN Git Service

Change default video quality to medium
[android-x86/packages-apps-Camera2.git] / src / com / android / camera / settings / Keys.java
index 8712d4e..a90bf36 100644 (file)
@@ -80,6 +80,7 @@ public class Keys {
     public static final String KEY_HDR_PLUS_FLASH_MODE = "pref_hdr_plus_flash_mode";
     public static final String KEY_SHOULD_SHOW_SETTINGS_BUTTON_CLING =
             "pref_should_show_settings_button_cling";
+    public static final String KEY_HAS_SEEN_PERMISSIONS_DIALOGS = "pref_has_seen_permissions_dialogs";
 
     /**
      * Set some number of defaults for the defined keys.
@@ -114,7 +115,7 @@ public class Keys {
             context.getString(R.string.pref_camera_focusmode_default),
             context.getResources().getStringArray(R.array.pref_camera_focusmode_entryvalues));
 
-        String videoQualityBackDefaultValue = context.getString(R.string.pref_video_quality_large);
+        String videoQualityBackDefaultValue = context.getString(R.string.pref_video_quality_medium);
         // TODO: We tweaked the default setting based on model string which is not ideal. Detecting
         // CamcorderProfile capability is a better way to get this job done. However,
         // |CamcorderProfile.hasProfile| needs camera id info. We need a way to provide camera id to
@@ -133,7 +134,7 @@ public class Keys {
         }
 
         settingsManager.setDefaults(KEY_VIDEO_QUALITY_FRONT,
-            context.getString(R.string.pref_video_quality_large),
+            context.getString(R.string.pref_video_quality_medium),
             context.getResources().getStringArray(R.array.pref_video_quality_entryvalues));
         if (!settingsManager.isSet(SettingsManager.SCOPE_GLOBAL, Keys.KEY_VIDEO_QUALITY_FRONT)) {
             settingsManager.setToDefault(SettingsManager.SCOPE_GLOBAL,