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 13c93783a75636a2708aabd2d432a468d6a40004..b8e35da5058f2fc09c5073ba77a11f55393af5c9 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 555e9ae3512a8d3b25dd87928e97f295180831be..0dbfa70924f5ea626c7a5f9343521742d76b8600 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" />