Geobookmarks shown as list by default

This commit is contained in:
Daniele Verducci (ZenPenguin) 2021-08-30 07:37:51 +02:00
parent b3c63df32e
commit a327cf7a21
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ public class MainActivity extends AppCompatActivity implements MainView, OnSorti
preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
int sortRule = preferences.getInt(getString(R.string.setting_sort_by), SORT_BY_CREATED); 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); recyclerView = findViewById(R.id.recycler_view);
layoutManager = new StaggeredGridLayoutManager(gridViewEnabled ? 2 : 1, StaggeredGridLayoutManager.VERTICAL); layoutManager = new StaggeredGridLayoutManager(gridViewEnabled ? 2 : 1, StaggeredGridLayoutManager.VERTICAL);

View File

@ -145,7 +145,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
app:layoutManager="androidx.recyclerview.widget.StaggeredGridLayoutManager" app:layoutManager="androidx.recyclerview.widget.StaggeredGridLayoutManager"
app:spanCount="2" app:spanCount="1"
tools:itemCount="3" tools:itemCount="3"
tools:listitem="@layout/item_note"> tools:listitem="@layout/item_note">
</androidx.recyclerview.widget.RecyclerView> </androidx.recyclerview.widget.RecyclerView>