From e7e8c9082583844e46f323a20315ab9485dd3ab2 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Mon, 26 Jun 2023 12:55:11 +0600 Subject: [PATCH] 1328-Enable_gridView_as_default issue: https://gitlab.e.foundation/e/os/backlog/-/issues/1328 --- .../java/it/niedermann/owncloud/notes/NotesApplication.java | 2 +- app/src/main/res/xml/preferences.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/it/niedermann/owncloud/notes/NotesApplication.java b/app/src/main/java/it/niedermann/owncloud/notes/NotesApplication.java index 13c93783a..b8e35da50 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/NotesApplication.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/NotesApplication.java @@ -27,7 +27,7 @@ public class NotesApplication extends Application { setAppTheme(getAppTheme(getApplicationContext())); final var prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); lockedPreference = prefs.getBoolean(getString(R.string.pref_key_lock), false); - isGridViewEnabled = getDefaultSharedPreferences(this).getBoolean(getString(R.string.pref_key_gridview), false); + isGridViewEnabled = getDefaultSharedPreferences(this).getBoolean(getString(R.string.pref_key_gridview), true); setLogLevel(); super.onCreate(); diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 555e9ae35..0dbfa7092 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -29,6 +29,7 @@ android:icon="@drawable/ic_baseline_dashboard_24" android:key="@string/pref_key_gridview" android:layout="@layout/item_pref" + android:defaultValue="true" android:title="@string/settings_gridview" />