summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/FileSelectionFragment.java
diff options
context:
space:
mode:
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