From 2b877b8c080a5f112c6a9bdc177c00fb04d20dae Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Tue, 5 Apr 2022 10:14:28 +0600 Subject: [PATCH] 165-Set_maximise_preview_size_as_default issue: https://gitlab.e.foundation/e/os/backlog/-/issues/165 --- .../java/net/sourceforge/opencamera/MyApplicationInterface.java | 2 +- .../opencamera/preview/BasicApplicationInterface.java | 2 +- .../main/java/net/sourceforge/opencamera/ui/DrawPreview.java | 2 +- app/src/main/res/xml/preferences.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/net/sourceforge/opencamera/MyApplicationInterface.java b/app/src/main/java/net/sourceforge/opencamera/MyApplicationInterface.java index 8820143c6..d52ed9330 100644 --- a/app/src/main/java/net/sourceforge/opencamera/MyApplicationInterface.java +++ b/app/src/main/java/net/sourceforge/opencamera/MyApplicationInterface.java @@ -1030,7 +1030,7 @@ public class MyApplicationInterface extends BasicApplicationInterface { @Override public String getPreviewSizePref() { - return sharedPreferences.getString(PreferenceKeys.PreviewSizePreferenceKey, "preference_preview_size_wysiwyg"); + return sharedPreferences.getString(PreferenceKeys.PreviewSizePreferenceKey, "preference_preview_size_display"); } @Override diff --git a/app/src/main/java/net/sourceforge/opencamera/preview/BasicApplicationInterface.java b/app/src/main/java/net/sourceforge/opencamera/preview/BasicApplicationInterface.java index 58395005f..9695e8908 100644 --- a/app/src/main/java/net/sourceforge/opencamera/preview/BasicApplicationInterface.java +++ b/app/src/main/java/net/sourceforge/opencamera/preview/BasicApplicationInterface.java @@ -185,7 +185,7 @@ public abstract class BasicApplicationInterface implements ApplicationInterface @Override public String getPreviewSizePref() { - return "preference_preview_size_wysiwyg"; + return "preference_preview_size_display"; } @Override diff --git a/app/src/main/java/net/sourceforge/opencamera/ui/DrawPreview.java b/app/src/main/java/net/sourceforge/opencamera/ui/DrawPreview.java index 4ac1b115c..5b60afc36 100644 --- a/app/src/main/java/net/sourceforge/opencamera/ui/DrawPreview.java +++ b/app/src/main/java/net/sourceforge/opencamera/ui/DrawPreview.java @@ -538,7 +538,7 @@ public class DrawPreview { show_geo_direction_pref = sharedPreferences.getBoolean(PreferenceKeys.ShowGeoDirectionPreferenceKey, false); take_photo_border_pref = sharedPreferences.getBoolean(PreferenceKeys.TakePhotoBorderPreferenceKey, true); - preview_size_wysiwyg_pref = sharedPreferences.getString(PreferenceKeys.PreviewSizePreferenceKey, "preference_preview_size_wysiwyg").equals("preference_preview_size_wysiwyg"); + preview_size_wysiwyg_pref = sharedPreferences.getString(PreferenceKeys.PreviewSizePreferenceKey, "preference_preview_size_display").equals("preference_preview_size_wysiwyg"); store_location_pref = sharedPreferences.getBoolean(PreferenceKeys.LocationPreferenceKey, false); show_angle_line_pref = sharedPreferences.getBoolean(PreferenceKeys.ShowAngleLinePreferenceKey, false); diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 6bf42ec6e..f78323f67 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -329,7 +329,7 @@ android:summary="%s" android:entries="@array/preference_preview_size_entries" android:entryValues="@array/preference_preview_size_values" - android:defaultValue="preference_preview_size_wysiwyg" + android:defaultValue="preference_preview_size_display" />