diff --git a/app/src/main/java/com/github/apognu/otter/activities/MainActivity.kt b/app/src/main/java/com/github/apognu/otter/activities/MainActivity.kt index 8d72799..80f2dd9 100644 --- a/app/src/main/java/com/github/apognu/otter/activities/MainActivity.kt +++ b/app/src/main/java/com/github/apognu/otter/activities/MainActivity.kt @@ -533,6 +533,10 @@ class MainActivity : AppCompatActivity() { favoriteRepository.fetch(Repository.Origin.Network.origin) } + + now_playing_details_add_to_playlist.setOnClickListener { + CommandBus.send(Command.AddToPlaylist(listOf(track))) + } } } } diff --git a/app/src/main/res/drawable/add_to_playlist.xml b/app/src/main/res/drawable/add_to_playlist.xml new file mode 100644 index 0000000..2494745 --- /dev/null +++ b/app/src/main/res/drawable/add_to_playlist.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/layout-land/partial_now_playing.xml b/app/src/main/res/layout-land/partial_now_playing.xml index e983802..230f896 100644 --- a/app/src/main/res/layout-land/partial_now_playing.xml +++ b/app/src/main/res/layout-land/partial_now_playing.xml @@ -130,6 +130,15 @@ + + + +