From 10f6998a71d657940b96b222e9d5b60fb69fd2ce Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 12 Aug 2013 18:27:16 +0200 Subject: Fix inline files in TLS Auth Key settings --- .../blinkt/openvpn/fragments/Settings_Authentication.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/de') 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; -- cgit v1.2.3