diff --git a/app/src/main/java/ch/blinkenlights/android/vanilla/LibraryActivity.java b/app/src/main/java/ch/blinkenlights/android/vanilla/LibraryActivity.java
index dfeb7d85..ce4f113f 100644
--- a/app/src/main/java/ch/blinkenlights/android/vanilla/LibraryActivity.java
+++ b/app/src/main/java/ch/blinkenlights/android/vanilla/LibraryActivity.java
@@ -108,9 +108,13 @@ public class LibraryActivity
*/
public static final int ACTION_PLAY_OR_ENQUEUE = 7;
/**
- * Action for row click: queue selection as next item
+ * Action for row click: queue selection as next item.
*/
public static final int ACTION_ENQUEUE_AS_NEXT = 8;
+ /**
+ * Action for row click: expand or play all.
+ */
+ public static final int ACTION_EXPAND_OR_PLAY_ALL = 9;
/**
* The SongTimeline add song modes corresponding to each relevant action.
*/
@@ -451,13 +455,16 @@ public class LibraryActivity
if (action == ACTION_LAST_USED)
action = mLastAction;
- if (action == ACTION_EXPAND && rowData.getBooleanExtra(LibraryAdapter.DATA_EXPANDABLE, false)) {
+ boolean tryExpand = action == ACTION_EXPAND || action == ACTION_EXPAND_OR_PLAY_ALL;
+ if (tryExpand && rowData.getBooleanExtra(LibraryAdapter.DATA_EXPANDABLE, false)) {
onItemExpanded(rowData);
} else if (action != ACTION_DO_NOTHING) {
if (action == ACTION_EXPAND) {
// default to playing when trying to expand something that can't
// be expanded
action = ACTION_PLAY;
+ } else if (action == ACTION_EXPAND_OR_PLAY_ALL) {
+ action = ACTION_PLAY_ALL;
} else if (action == ACTION_PLAY_OR_ENQUEUE) {
action = (mState & PlaybackService.FLAG_PLAYING) == 0 ? ACTION_PLAY : ACTION_ENQUEUE;
}
diff --git a/app/src/main/res/values-de/translatable.xml b/app/src/main/res/values-de/translatable.xml
index c30537bd..908c9c0c 100644
--- a/app/src/main/res/values-de/translatable.xml
+++ b/app/src/main/res/values-de/translatable.xml
@@ -49,6 +49,7 @@
Favoriten
Neue Wiedergabeliste …
Aufklappen
+ Aufklappen oder alle wiedergeben
Löschen
Aktueller Titel
Sortieren nach
diff --git a/app/src/main/res/values/translatable.xml b/app/src/main/res/values/translatable.xml
index 028facb1..bb2f865f 100644
--- a/app/src/main/res/values/translatable.xml
+++ b/app/src/main/res/values/translatable.xml
@@ -73,6 +73,7 @@ THE SOFTWARE.
Favorites
New playlist…
Expand
+ Expand or play all
Delete
Now playing
Sort by
diff --git a/app/src/main/res/values/untranslatable.xml b/app/src/main/res/values/untranslatable.xml
index 11fa5c77..66c8bf6f 100644
--- a/app/src/main/res/values/untranslatable.xml
+++ b/app/src/main/res/values/untranslatable.xml
@@ -110,18 +110,20 @@ THE SOFTWARE.
- @string/enqueue_all
- @string/play_or_enqueue
- @string/enqueue_as_next
+ - @string/expand_or_play_all
- @string/do_nothing
- - 6
- - 0
- - 1
- - 2
- - 3
- - 4
- - 7
- - 8
- - 5
+ - 6
+ - 0
+ - 1
+ - 2
+ - 3
+ - 4
+ - 7
+ - 8
+ - 9
+ - 5