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

Geoffrey Métais git at videolan.org
Fri Jan 5 16:05:00 CET 2018


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

Revert "We can't write filesystem on Oreo"

This reverts commit cdd659e8510afe70c52123758c1a2f44843bd8c7.

(cherry picked from commit a9de379d8aaca856f3e69537f83b49a0be22fefc)

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

 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 cf3103dad..d840b1646 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 (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