[Android] Revert "We can't write filesystem on Oreo"

Geoffrey Métais git at videolan.org
Tue Dec 19 14:21:43 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec 19 14:05:46 2017 +0100| [a9de379d8aaca856f3e69537f83b49a0be22fefc] | committer: Geoffrey Métais

Revert "We can't write filesystem on Oreo"

This reverts commit cdd659e8510afe70c52123758c1a2f44843bd8c7.

> https://code.videolan.org/videolan/vlc-android/commit/a9de379d8aaca856f3e69537f83b49a0be22fefc
---

 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 7c65af35c..d4511157f 100644
--- a/vlc-android/src/org/videolan/vlc/util/FileUtils.java
+++ b/vlc-android/src/org/videolan/vlc/util/FileUtils.java
@@ -272,7 +272,7 @@ public class FileUtils {
     }
 
     public static boolean canWrite(String path){
-        if (AndroidUtil.isOOrLater || TextUtils.isEmpty(path))
+        if (TextUtils.isEmpty(path))
             return false;
         if (path.startsWith("file://"))
             path = path.substring(7);



More information about the Android mailing list