diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-01-16 19:57:52 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2014-01-16 19:57:52 +0100 |
commit | 1e043dcd18f03d39b7984cb7b77b5e06da13cea6 (patch) | |
tree | d32b82a71af30b30e0ebedf17a201a32939c3928 /src/de/blinkt/openvpn | |
parent | 09c26d3d7204e0d89f809e439216787fb5aebaf9 (diff) |
Fix bug when importing on 4.4
--HG--
extra : amend_source : 39d68a0f95dec4744a56576009bb7f0ae08e0f17
Diffstat (limited to 'src/de/blinkt/openvpn')
-rw-r--r-- | src/de/blinkt/openvpn/activities/ConfigConverter.java | 8 |
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); |