detail: refactor module
Completely refactor the detail module. This is for a few reasons: - Prevent data regeneration every time a fragment re-creates. - Make DetailModel follow the customs of other ViewModels. - Simplify layouts into a single detail item to reduce code complexity. Currently sorting doesn't work, but that is still being worked out as the legacy SortMode continues to be phased out of Auxio.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<group android:checkableBehavior="single">
|
||||
<item
|
||||
android:id="@+id/option_sort_asc"
|
||||
android:title="@string/lbl_sort_asc" />
|
||||
<item
|
||||
android:id="@+id/option_sort_dsc"
|
||||
android:title="@string/lbl_sort_dsc" />
|
||||
<item
|
||||
android:id="@+id/option_sort_artist"
|
||||
android:title="@string/lbl_sort_artist" />
|
||||
<item
|
||||
android:id="@+id/option_sort_album"
|
||||
android:title="@string/lbl_sort_album" />
|
||||
<item
|
||||
android:id="@+id/option_sort_year"
|
||||
android:title="@string/lbl_sort_year" />
|
||||
</group>
|
||||
</menu>
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<item
|
||||
android:id="@+id/submenu_sorting"
|
||||
android:icon="@drawable/ic_sort_none"
|
||||
android:icon="@drawable/ic_sort"
|
||||
android:title="@string/lbl_sort"
|
||||
app:showAsAction="ifRoom">
|
||||
<menu>
|
||||
|
||||
Reference in New Issue
Block a user