[Android] Fix file check
Geoffrey Métais
git at videolan.org
Wed Feb 18 11:26:17 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Feb 18 11:25:30 2015 +0100| [23e55669fe69b54a77a49b90a63a9a96d306e049] | committer: Geoffrey Métais
Fix file check
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=23e55669fe69b54a77a49b90a63a9a96d306e049
---
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 a2645e6..dd551e4 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(MediaWrapper song, Context context){
File newringtone = LibVlcUtil.URItoFile(song.getLocation());
- if(newringtone == null || (newringtone != null && !newringtone.exists())) {
+ if(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