list: add ability to play/shuffle songs in menu
Add play and shuffle options for all song menus. These will override the shuffle state, unlike other song play interactions. This required a good bit of refactoring to menu, some of which might be ported to other commands in future changes.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- <item-->
|
||||
<!-- android:id="@+id/action_play"-->
|
||||
<!-- android:title="@string/lbl_play"-->
|
||||
<!-- android:icon="@drawable/ic_play_24" />-->
|
||||
<!-- <item-->
|
||||
<!-- android:id="@+id/action_shuffle"-->
|
||||
<!-- android:title="@string/lbl_shuffle"-->
|
||||
<!-- android:icon="@drawable/ic_shuffle_off_24"/>-->
|
||||
<item
|
||||
android:id="@+id/action_play"
|
||||
android:title="@string/lbl_play"
|
||||
android:icon="@drawable/ic_play_24" />
|
||||
<item
|
||||
android:id="@+id/action_shuffle"
|
||||
android:title="@string/lbl_shuffle"
|
||||
android:icon="@drawable/ic_shuffle_off_24"/>
|
||||
<item
|
||||
android:id="@+id/action_play_next"
|
||||
android:title="@string/lbl_play_next"
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- <item-->
|
||||
<!-- android:id="@+id/action_play"-->
|
||||
<!-- android:title="@string/lbl_play"-->
|
||||
<!-- android:icon="@drawable/ic_play_24" />-->
|
||||
<!-- <item-->
|
||||
<!-- android:id="@+id/action_shuffle"-->
|
||||
<!-- android:title="@string/lbl_shuffle"-->
|
||||
<!-- android:icon="@drawable/ic_shuffle_off_24"/>-->
|
||||
<item
|
||||
android:id="@+id/action_play"
|
||||
android:title="@string/lbl_play"
|
||||
android:icon="@drawable/ic_play_24" />
|
||||
<item
|
||||
android:id="@+id/action_shuffle"
|
||||
android:title="@string/lbl_shuffle"
|
||||
android:icon="@drawable/ic_shuffle_off_24"/>
|
||||
<item
|
||||
android:id="@+id/action_play_next"
|
||||
android:title="@string/lbl_play_next"
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- <item-->
|
||||
<!-- android:id="@+id/action_play"-->
|
||||
<!-- android:title="@string/lbl_play"-->
|
||||
<!-- android:icon="@drawable/ic_play_24" />-->
|
||||
<!-- <item-->
|
||||
<!-- android:id="@+id/action_shuffle"-->
|
||||
<!-- android:title="@string/lbl_shuffle"-->
|
||||
<!-- android:icon="@drawable/ic_shuffle_off_24" />-->
|
||||
<item
|
||||
android:id="@+id/action_play"
|
||||
android:title="@string/lbl_play"
|
||||
android:icon="@drawable/ic_play_24" />
|
||||
<item
|
||||
android:id="@+id/action_shuffle"
|
||||
android:title="@string/lbl_shuffle"
|
||||
android:icon="@drawable/ic_shuffle_off_24"/>
|
||||
<item
|
||||
android:id="@+id/action_play_next"
|
||||
android:title="@string/lbl_play_next"
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:id="@+id/action_play"
|
||||
android:title="@string/lbl_play"
|
||||
android:icon="@drawable/ic_play_24" />
|
||||
<item
|
||||
android:id="@+id/action_shuffle"
|
||||
android:title="@string/lbl_shuffle"
|
||||
android:icon="@drawable/ic_shuffle_off_24"/>
|
||||
<item
|
||||
android:id="@+id/action_play_next"
|
||||
android:title="@string/lbl_play_next"
|
||||
|
||||
@@ -351,11 +351,8 @@
|
||||
android:label="song_menu_dialog"
|
||||
tools:layout="@layout/dialog_menu">
|
||||
<argument
|
||||
android:name="menuRes"
|
||||
app:argType="integer" />
|
||||
<argument
|
||||
android:name="songUid"
|
||||
app:argType="org.oxycblt.auxio.music.Music$UID" />
|
||||
android:name="parcel"
|
||||
app:argType="org.oxycblt.auxio.list.Menu$ForSong$Parcel" />
|
||||
</dialog>
|
||||
|
||||
<dialog
|
||||
@@ -364,11 +361,8 @@
|
||||
android:label="album_menu_dialog"
|
||||
tools:layout="@layout/dialog_menu">
|
||||
<argument
|
||||
android:name="menuRes"
|
||||
app:argType="integer"/>
|
||||
<argument
|
||||
android:name="albumUid"
|
||||
app:argType="org.oxycblt.auxio.music.Music$UID" />
|
||||
android:name="parcel"
|
||||
app:argType="org.oxycblt.auxio.list.Menu$ForAlbum$Parcel" />
|
||||
</dialog>
|
||||
|
||||
<dialog
|
||||
@@ -377,11 +371,8 @@
|
||||
android:label="artist_menu_dialog"
|
||||
tools:layout="@layout/dialog_menu">
|
||||
<argument
|
||||
android:name="menuRes"
|
||||
app:argType="integer" />
|
||||
<argument
|
||||
android:name="artistUid"
|
||||
app:argType="org.oxycblt.auxio.music.Music$UID" />
|
||||
android:name="parcel"
|
||||
app:argType="org.oxycblt.auxio.list.Menu$ForArtist$Parcel" />
|
||||
</dialog>
|
||||
|
||||
<dialog
|
||||
@@ -390,11 +381,8 @@
|
||||
android:label="genre_menu_dialog"
|
||||
tools:layout="@layout/dialog_menu">
|
||||
<argument
|
||||
android:name="menuRes"
|
||||
app:argType="integer" />
|
||||
<argument
|
||||
android:name="genreUid"
|
||||
app:argType="org.oxycblt.auxio.music.Music$UID" />
|
||||
android:name="parcel"
|
||||
app:argType="org.oxycblt.auxio.list.Menu$ForGenre$Parcel" />
|
||||
</dialog>
|
||||
|
||||
<dialog
|
||||
@@ -403,11 +391,8 @@
|
||||
android:label="playlist_menu_dialog"
|
||||
tools:layout="@layout/dialog_menu">
|
||||
<argument
|
||||
android:name="menuRes"
|
||||
app:argType="integer" />
|
||||
<argument
|
||||
android:name="playlistUid"
|
||||
app:argType="org.oxycblt.auxio.music.Music$UID" />
|
||||
android:name="parcel"
|
||||
app:argType="org.oxycblt.auxio.list.Menu$ForPlaylist$Parcel" />
|
||||
</dialog>
|
||||
|
||||
<fragment
|
||||
|
||||
@@ -108,8 +108,8 @@
|
||||
|
||||
<string-array name="entries_play_in_list_with">
|
||||
<item>@string/set_play_song_from_all</item>
|
||||
<item>@string/set_play_song_from_artist</item>
|
||||
<item>@string/set_play_song_from_album</item>
|
||||
<item>@string/set_play_song_from_artist</item>
|
||||
<item>@string/set_play_song_from_genre</item>
|
||||
<item>@string/set_play_song_by_itself</item>
|
||||
</string-array>
|
||||
@@ -119,14 +119,14 @@
|
||||
<item>@integer/play_song_from_album</item>
|
||||
<item>@integer/play_song_from_artist</item>
|
||||
<item>@integer/play_song_from_genre</item>
|
||||
<item>@integer/play_song_itself</item>
|
||||
<item>@integer/play_song_by_itself</item>
|
||||
</integer-array>
|
||||
|
||||
<string-array name="entries_play_in_parent_with">
|
||||
<item>@string/set_play_song_none</item>
|
||||
<item>@string/set_play_song_from_all</item>
|
||||
<item>@string/set_play_song_from_artist</item>
|
||||
<item>@string/set_play_song_from_album</item>
|
||||
<item>@string/set_play_song_from_artist</item>
|
||||
<item>@string/set_play_song_from_genre</item>
|
||||
<item>@string/set_play_song_by_itself</item>
|
||||
</string-array>
|
||||
@@ -137,7 +137,7 @@
|
||||
<item>@integer/play_song_from_album</item>
|
||||
<item>@integer/play_song_from_artist</item>
|
||||
<item>@integer/play_song_from_genre</item>
|
||||
<item>@integer/play_song_itself</item>
|
||||
<item>@integer/play_song_by_itself</item>
|
||||
</integer-array>
|
||||
|
||||
<string-array name="entries_replay_gain">
|
||||
@@ -157,11 +157,12 @@
|
||||
<integer name="theme_dark">2</integer>
|
||||
|
||||
<integer name="play_song_none">-2147483648</integer>
|
||||
<integer name="play_song_itself">0xA11F</integer>
|
||||
<integer name="play_song_from_all">0xA120</integer>
|
||||
<integer name="play_song_from_album">0xA121</integer>
|
||||
<integer name="play_song_from_artist">0xA122</integer>
|
||||
<integer name="play_song_from_genre">0xA123</integer>
|
||||
<integer name="play_song_from_all">0xA11F</integer>
|
||||
<integer name="play_song_from_album">0xA120</integer>
|
||||
<integer name="play_song_from_artist">0xA121</integer>
|
||||
<integer name="play_song_from_genre">0xA122</integer>
|
||||
<integer name="play_song_from_playlist">0xA123</integer>
|
||||
<integer name="play_song_by_itself">0xA124</integer>
|
||||
|
||||
<integer name="replay_gain_track">0xA111</integer>
|
||||
<integer name="replay_gain_album">0xA112</integer>
|
||||
|
||||
Reference in New Issue
Block a user