[Android] Another Ringtone setting fix

Edward Wang git at videolan.org
Fri Jul 18 17:53:00 CEST 2014


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Fri Jul 18 11:52:48 2014 -0400| [da4baf56a0ee440cd52f819400a685dceffc527a] | committer: Edward Wang

Another Ringtone setting fix

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=da4baf56a0ee440cd52f819400a685dceffc527a
---

 vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
index 4f4258f..e5a3e9b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
@@ -76,7 +76,7 @@ public class AudioUtil {
 
     public static void setRingtone(Media song, Context context){
         File newringtone = LibVlcUtil.URItoFile(song.getLocation());
-        if( newringtone != null && !newringtone.exists()) {
+        if(newringtone == null || (newringtone != null && !newringtone.exists())) {
             Toast.makeText(context.getApplicationContext(),context.getString(R.string.ringtone_error), Toast.LENGTH_SHORT).show();
             return;
         }



More information about the Android mailing list