[Android] We can't write filesystem on Oreo
Geoffrey Métais
git at videolan.org
Thu Sep 28 11:41:48 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Sep 28 11:40:26 2017 +0200| [cdd659e8510afe70c52123758c1a2f44843bd8c7] | committer: Geoffrey Métais
We can't write filesystem on Oreo
> https://code.videolan.org/videolan/vlc-android/commit/cdd659e8510afe70c52123758c1a2f44843bd8c7
---
vlc-android/src/org/videolan/vlc/util/FileUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/util/FileUtils.java b/vlc-android/src/org/videolan/vlc/util/FileUtils.java
index c349cad38..62b0e0230 100644
--- a/vlc-android/src/org/videolan/vlc/util/FileUtils.java
+++ b/vlc-android/src/org/videolan/vlc/util/FileUtils.java
@@ -271,7 +271,7 @@ public class FileUtils {
}
public static boolean canWrite(String path){
- if (TextUtils.isEmpty(path))
+ if (AndroidUtil.isOOrLater || TextUtils.isEmpty(path))
return false;
if (path.startsWith("file://"))
path = path.substring(7);
More information about the Android
mailing list