~singpolyma/cheogram-android

e7a9b4e794dfa9a6b9b0d0d812a4fe747a3989f2 — Stephen Paul Weber 3 months ago 0cb85af
Copy in file if we can't read the path
1 files changed, 2 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/persistance/FileBackend.java
M src/main/java/eu/siacs/conversations/persistance/FileBackend.java => src/main/java/eu/siacs/conversations/persistance/FileBackend.java +2 -1
@@ 215,7 215,8 @@ public class FileBackend {
    public static boolean isPathBlacklisted(String path) {
        final String androidDataPath =
                Environment.getExternalStorageDirectory().getAbsolutePath() + "/Android/data/";
        return path.startsWith(androidDataPath);
        final File f = new File(path);
        return path.startsWith(androidDataPath) || !f.canRead();
    }

    private static Paint createAntiAliasingPaint() {