summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/FileSelectionFragment.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-07-21 00:23:13 +0200
committerArne Schwabe <arne@rfc2549.org>2012-07-21 00:23:13 +0200
commite8261bbc90f46dad1a7c0bb8bd998ebf9107f0f9 (patch)
tree715cdfe0ce50b6d33372cd8462c8a0b8c8f28028 /src/de/blinkt/openvpn/FileSelectionFragment.java
parent1f5ea346167406d4d2e734b4595786bbb8ad1089 (diff)
Allow clearing of the CA Cert (closes issue #57)
Diffstat (limited to 'src/de/blinkt/openvpn/FileSelectionFragment.java')
-rw-r--r--src/de/blinkt/openvpn/FileSelectionFragment.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/de/blinkt/openvpn/FileSelectionFragment.java b/src/de/blinkt/openvpn/FileSelectionFragment.java
index 1761c395..2d8110e1 100644
--- a/src/de/blinkt/openvpn/FileSelectionFragment.java
+++ b/src/de/blinkt/openvpn/FileSelectionFragment.java
@@ -73,15 +73,17 @@ public class FileSelectionFragment extends ListFragment {
});
mClearButton = (Button) v.findViewById(R.id.fdClear);
- mClearButton.setEnabled(false);
mClearButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
-
+ ((FileSelect) getActivity()).clearData();
}
});
- mClearButton.setVisibility(View.GONE);
+ if(!((FileSelect) getActivity()).showClear()) {
+ mClearButton.setVisibility(View.GONE);
+ mClearButton.setEnabled(false);
+ }
mImportFile = (Button) v.findViewById(R.id.importfile);
@@ -108,7 +110,7 @@ public class FileSelectionFragment extends ListFragment {
super.onActivityCreated(savedInstanceState);
mStartPath = ((FileSelect) getActivity()).getSelectPath();
- getDir(mStartPath);
+ getDir(mStartPath);
}
@Override