diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-08-12 18:27:16 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-08-12 18:27:16 +0200 |
commit | 10f6998a71d657940b96b222e9d5b60fb69fd2ce (patch) | |
tree | 82fc2142a58ac27e4fb61b999dca721399fb8c70 /src/de/blinkt | |
parent | 271d63e7bca62045aabbcff07cc262cdffaf8ec0 (diff) |
Fix inline files in TLS Auth Key settings
Diffstat (limited to 'src/de/blinkt')
-rw-r--r-- | src/de/blinkt/openvpn/fragments/Settings_Authentication.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/de/blinkt/openvpn/fragments/Settings_Authentication.java b/src/de/blinkt/openvpn/fragments/Settings_Authentication.java index 592adcb1..9aed464d 100644 --- a/src/de/blinkt/openvpn/fragments/Settings_Authentication.java +++ b/src/de/blinkt/openvpn/fragments/Settings_Authentication.java @@ -149,13 +149,14 @@ public class Settings_Authentication extends OpenVpnPreferencesFragment implemen return ret + dn; } - void startFileDialog() { - Intent startFC = new Intent(getActivity(),FileSelect.class); - startFC.putExtra(FileSelect.START_DATA, Environment.getExternalStorageDirectory().getPath()); - - startActivityForResult(startFC,SELECT_TLS_FILE); - } - @Override + void startFileDialog() { + Intent startFC = new Intent(getActivity(), FileSelect.class); + startFC.putExtra(FileSelect.START_DATA, mTlsAuthFileData); + startFC.putExtra(FileSelect.WINDOW_TITLE, R.string.tls_auth_file); + startActivityForResult(startFC, SELECT_TLS_FILE); + } + + @Override public boolean onPreferenceClick(Preference preference) { startFileDialog(); return true; |