File tree Expand file tree Collapse file tree
app/src/main/java/app/grapheneos/camera Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -797,7 +797,7 @@ class CamConfig(private val mActivity: MainActivity) {
797797 editor.putString(SettingValues .Key .FOCUS_TIMEOUT , SettingValues .Default .FOCUS_TIMEOUT )
798798 }
799799
800- migrateFromOptimizationMode ()
800+ migrateFromLegacyPhotoQuality ()
801801
802802 if (! commonPref.contains(SettingValues .Key .INCLUDE_AUDIO )) {
803803 editor.putBoolean(
@@ -950,7 +950,7 @@ class CamConfig(private val mActivity: MainActivity) {
950950 }
951951 }
952952
953- fun migrateFromOptimizationMode () {
953+ fun migrateFromLegacyPhotoQuality () {
954954 // If emphasis on quality/optimization was previously set by the user
955955 if (commonPref.contains(SettingValues .Key .EMPHASIS_ON_QUALITY )) {
956956 // If the photo quality key has not previously been set
@@ -970,6 +970,10 @@ class CamConfig(private val mActivity: MainActivity) {
970970 remove(SettingValues .Key .EMPHASIS_ON_QUALITY )
971971 }
972972 }
973+
974+ if (photoQuality == 0 ) {
975+ photoQuality = 95 ;
976+ }
973977 }
974978
975979
You can’t perform that action at this time.
0 commit comments