summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/de/blinkt/openvpn/activities/ConfigConverter.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/activities/ConfigConverter.java b/src/de/blinkt/openvpn/activities/ConfigConverter.java
index 4fa66449..78eb4a2c 100644
--- a/src/de/blinkt/openvpn/activities/ConfigConverter.java
+++ b/src/de/blinkt/openvpn/activities/ConfigConverter.java
@@ -262,14 +262,18 @@ public class ConfigConverter extends ListActivity {
// Do a little hackish dance for the Android File Importer
// /document/primary:ovpn/openvpn-imt.conf
+
if (path.indexOf(':')!=-1) {
String possibleDir = path.substring(path.indexOf(':')+1,path.length());
- possibleDir.substring(0,possibleDir.lastIndexOf('/'));
- dirlist.add(new File(sdcard,possibleDir));
+ possibleDir = possibleDir.substring(0,possibleDir.lastIndexOf('/'));
+
+ dirlist.add(new File(sdcard,possibleDir));
}
dirlist.add(new File(path));
+
+
}
dirlist.add(sdcard);
dirlist.add(root);