From a327cf7a213d265324cc3eb98a4cb64aae1d7ce1 Mon Sep 17 00:00:00 2001 From: "Daniele Verducci (ZenPenguin)" Date: Mon, 30 Aug 2021 07:37:51 +0200 Subject: [PATCH] Geobookmarks shown as list by default --- .../nextcloudmaps/activity/main/MainActivity.java | 2 +- app/src/main/res/layout/activity_list_view.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/MainActivity.java b/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/MainActivity.java index 1a87796..3b1540d 100644 --- a/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/MainActivity.java +++ b/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/MainActivity.java @@ -95,7 +95,7 @@ public class MainActivity extends AppCompatActivity implements MainView, OnSorti preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); int sortRule = preferences.getInt(getString(R.string.setting_sort_by), SORT_BY_CREATED); - boolean gridViewEnabled = preferences.getBoolean(getString(R.string.setting_grid_view_enabled), true); + boolean gridViewEnabled = preferences.getBoolean(getString(R.string.setting_grid_view_enabled), false); recyclerView = findViewById(R.id.recycler_view); layoutManager = new StaggeredGridLayoutManager(gridViewEnabled ? 2 : 1, StaggeredGridLayoutManager.VERTICAL); diff --git a/app/src/main/res/layout/activity_list_view.xml b/app/src/main/res/layout/activity_list_view.xml index 533b384..887259d 100644 --- a/app/src/main/res/layout/activity_list_view.xml +++ b/app/src/main/res/layout/activity_list_view.xml @@ -145,7 +145,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" app:layoutManager="androidx.recyclerview.widget.StaggeredGridLayoutManager" - app:spanCount="2" + app:spanCount="1" tools:itemCount="3" tools:listitem="@layout/item_note">