summaryrefslogtreecommitdiff
path: root/src/de
diff options
context:
space:
mode:
Diffstat (limited to 'src/de')
-rw-r--r--src/de/blinkt/openvpn/fragments/Settings_Authentication.java15
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;