aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-04-08 18:28:40 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-04-08 18:28:40 +0200
commitdb0301310bcb4fa238df4839d793162727270dc1 (patch)
tree0a31f44bb69a34ccdd5871ceb86a30a1bafb3287 /src/main/java
parent7a84cfdfa28cb9060aa74783455f0745d6ab088b (diff)
removed ernoexception in exchange for a regular exeption to prevent verify error on <5.0
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/eu/siacs/conversations/persistance/FileBackend.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/eu/siacs/conversations/persistance/FileBackend.java b/src/main/java/eu/siacs/conversations/persistance/FileBackend.java
index 69b81569c..0861a3a86 100644
--- a/src/main/java/eu/siacs/conversations/persistance/FileBackend.java
+++ b/src/main/java/eu/siacs/conversations/persistance/FileBackend.java
@@ -15,7 +15,6 @@ import android.os.Build;
import android.os.Environment;
import android.os.ParcelFileDescriptor;
import android.provider.OpenableColumns;
-import android.system.ErrnoException;
import android.system.Os;
import android.system.StructStat;
import android.util.Base64;
@@ -673,10 +672,10 @@ public class FileBackend {
FileDescriptor fd = ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY).getFileDescriptor();
StructStat st = Os.fstat(fd);
return st.st_uid == android.os.Process.myUid();
- } catch (ErrnoException e) {
- return true;
} catch (FileNotFoundException e) {
return false;
+ } catch (Exception e) {
+ return true;
}
}
}