From 56889cd25ff1762fca0e30d99eab0a572dbc2fab Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Wed, 3 Jul 2013 14:10:59 +0200 Subject: Restructure global settings --HG-- extra : amend_source : 1b4e0ac86c557993b0195c4b1bad968f3f27aac1 --- src/de/blinkt/openvpn/fragments/Settings_Basic.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/de/blinkt/openvpn/fragments') diff --git a/src/de/blinkt/openvpn/fragments/Settings_Basic.java b/src/de/blinkt/openvpn/fragments/Settings_Basic.java index 05e4a2a8..77025dbd 100644 --- a/src/de/blinkt/openvpn/fragments/Settings_Basic.java +++ b/src/de/blinkt/openvpn/fragments/Settings_Basic.java @@ -131,7 +131,7 @@ public class Settings_Basic extends Fragment implements View.OnClickListener, On if (result == Activity.RESULT_OK && request >= CHOOSE_FILE_OFFSET) { String filedata = data.getStringExtra(FileSelect.RESULT_DATA); FileSelectLayout fsl = fileselects.get(request); - fsl.setData(filedata); + fsl.setData(filedata, getActivity()); savePreferences(); @@ -207,16 +207,16 @@ public class Settings_Basic extends Fragment implements View.OnClickListener, On private void loadPreferences() { mProfileName.setText(mProfile.mName); - mClientCert.setData(mProfile.mClientCertFilename); - mClientKey.setData(mProfile.mClientKeyFilename); - mCaCert.setData(mProfile.mCaFilename); + mClientCert.setData(mProfile.mClientCertFilename, getActivity()); + mClientKey.setData(mProfile.mClientKeyFilename, getActivity()); + mCaCert.setData(mProfile.mCaFilename, getActivity()); mUseLzo.setChecked(mProfile.mUseLzo); mServerPort.setText(mProfile.mServerPort); mServerAddress.setText(mProfile.mServerName); mTcpUdp.setChecked(mProfile.mUseUdp); mType.setSelection(mProfile.mAuthenticationType); - mpkcs12.setData(mProfile.mPKCS12Filename); + mpkcs12.setData(mProfile.mPKCS12Filename, getActivity()); mPKCS12Password.setText(mProfile.mPKCS12Password); mUserName.setText(mProfile.mUsername); mPassword.setText(mProfile.mPassword); -- cgit v1.2.3