高通Android 11 修改默认相机的默认picture size

/vendor/codeaurora/packages/apps/SnapdragonCamera/src/com/android/camera/SettingsManager.java

     private void resetIfInvalid(ListPreference pref) {
         // Set the value to the first entry if it is invalid.
         String value = pref.getValue();
+        Log.e("ccccccccccccc SetingManer","value="+value);
         if (pref.findIndexOfValue(value) == -1) {
-            pref.setValueIndex(0);
+            if (pref.getEntryValues() != null &&
+            pref.getEntryValues().length > 8) {
+               pref.setValueIndex(8);
+            }
         }
     }

你可能感兴趣的:(android,android,java,apache)