From 8869f4aeb26c15c23f7d9f2deeb34efd063cd145 Mon Sep 17 00:00:00 2001 From: Karim Abou Zeid Date: Mon, 1 Jun 2015 00:48:01 +0200 Subject: [PATCH] Added sharing for songs. Added set as ringtone for songs. --- app/build.gradle | 2 +- app/src/main/AndroidManifest.xml | 1 + .../gramophone/dialogs/SongShareDialog.java | 60 +++++++++++++++++++ .../helper/MenuItemClickHelper.java | 15 +++-- .../activities/MusicControllerActivity.java | 4 ++ .../kabouzeid/gramophone/util/MusicUtil.java | 51 +++++++++++++++- .../res/menu/menu_item_playing_queue_song.xml | 8 +++ .../main/res/menu/menu_item_playlist_song.xml | 8 +++ app/src/main/res/menu/menu_item_song.xml | 8 +++ app/src/main/res/menu/menu_music_playing.xml | 8 ++- app/src/main/res/values/strings.xml | 8 ++- 11 files changed, 161 insertions(+), 12 deletions(-) create mode 100644 app/src/main/java/com/kabouzeid/gramophone/dialogs/SongShareDialog.java diff --git a/app/build.gradle b/app/build.gradle index 4d488c1a..c7cf4bf8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -28,7 +28,7 @@ android { minSdkVersion 16 targetSdkVersion 22 versionCode 29 - versionName "0.9.13b DEV-2" + versionName "0.9.13b DEV-3" } compileOptions { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0cd4429a..9a872428 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -8,6 +8,7 @@ + + + + + + + - + - - + What do you want to share? + Currently listening to %1$s by %2$s + The audio file + Do you want to set %1$s as your ringtone? + %1$s has been set as your ringtone. + Set as ringtone Share Settings About @@ -19,7 +25,7 @@ Songs Playlists Nothing is playing - Sorry - an error occurred while attempting to play this song + Sorry - an error occurred while attempting to play this song. Sorry, we were not able to find a matching biography for this artist. Biography We were not able to gain audio focus.