[Android] Audio GUI: fix the set a media as the ringtone function
Adrien Maglo
git at videolan.org
Fri Mar 21 18:02:05 CET 2014
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Mar 21 18:01:34 2014 +0100| [0cdff92260891e4554b89cc7cbf4d8c5a1848223] | committer: Adrien Maglo
Audio GUI: fix the set a media as the ringtone function
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=0cdff92260891e4554b89cc7cbf4d8c5a1848223
---
.../src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java | 2 +-
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
index 776ce88..c24c40d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
@@ -271,7 +271,7 @@ public class AudioAlbumsSongsFragment extends SherlockFragment {
}
if (id == R.id.audio_list_browser_set_song) {
- //AudioUtil.setRingtone(mSongsAdapter.getItem(groupPosition),getActivity());
+ AudioUtil.setRingtone(mSongsAdapter.getItem(groupPosition).mMediaList.get(0), getActivity());
return true;
}
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
index 0ea50ed..981b312 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -275,7 +275,7 @@ public class AudioBrowserFragment extends SherlockFragment {
}
if (id == R.id.audio_list_browser_set_song) {
- //AudioUtil.setRingtone(mSongsAdapter.getItem(groupPosition),getActivity());
+ AudioUtil.setRingtone(mSongsAdapter.getItem(groupPosition).mMediaList.get(0), getActivity());
return true;
}
More information about the Android
mailing list