[Android] ChromeOS: only open the file if the selection was valid
Jean-Baptiste Kempf
git at videolan.org
Tue Nov 24 17:00:51 CET 2015
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Nov 24 17:00:25 2015 +0100| [9e84ba561a31a63daa34a452e2c2ad9e502d8a24] | committer: Jean-Baptiste Kempf
ChromeOS: only open the file if the selection was valid
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=9e84ba561a31a63daa34a452e2c2ad9e502d8a24
---
vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index ddccc3d..9a988a9 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -585,7 +585,7 @@ public class MainActivity extends AudioPlayerContainerActivity implements Search
startActivity(intent);
}
}
- } else if (requestCode == ACTIVITY_RESULT_OPEN){
+ } else if (requestCode == ACTIVITY_RESULT_OPEN && resultCode == RESULT_OK){
MediaUtils.openUri(this, data.getData());
}
}
More information about the Android
mailing list