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">