summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMert Tumer <merttumer@outlook.com>2016-04-30 19:51:19 +0300
committerMichael Meeks <michael.meeks@collabora.com>2016-05-01 10:10:12 +0000
commitc6e8c96d50fc2082a3c4b9553196a42bbdd6df37 (patch)
treea0a2d3416301e5d18de78031a6f2981d2bf44a46
parent3acbc64869877868d30f7e1b8e5254282aed27f7 (diff)
tdf#99539 - fıx crash on android 5.1
Change-Id: I3d484f7d7d9e466ae1b2ac4afe2b59d060fa8b77 Reviewed-on: https://gerrit.libreoffice.org/24537 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
-rw-r--r--android/source/src/java/org/libreoffice/storage/external/ExtsdDocumentsProvider.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/android/source/src/java/org/libreoffice/storage/external/ExtsdDocumentsProvider.java b/android/source/src/java/org/libreoffice/storage/external/ExtsdDocumentsProvider.java
index 09e993bd1eb2..49b441e3a222 100644
--- a/android/source/src/java/org/libreoffice/storage/external/ExtsdDocumentsProvider.java
+++ b/android/source/src/java/org/libreoffice/storage/external/ExtsdDocumentsProvider.java
@@ -60,8 +60,10 @@ public class ExtsdDocumentsProvider implements IExternalDocumentProvider,
for (File option: options) {
String optionPath = option.getAbsolutePath();
- if(!optionPath.contains(internalSDPath))
+
+ if(optionPath.contains(internalSDPath))
return option.toURI().toString();
+
}
return "";