summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/FileSelectLayout.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/blinkt/openvpn/FileSelectLayout.java')
-rw-r--r--src/de/blinkt/openvpn/FileSelectLayout.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/de/blinkt/openvpn/FileSelectLayout.java b/src/de/blinkt/openvpn/FileSelectLayout.java
index 1a60d135..fb563f5d 100644
--- a/src/de/blinkt/openvpn/FileSelectLayout.java
+++ b/src/de/blinkt/openvpn/FileSelectLayout.java
@@ -21,6 +21,7 @@ public class FileSelectLayout extends LinearLayout implements OnClickListener {
private Button mSelectButton;
private boolean mNoInline;
private String mTitle;
+ private boolean mShowClear;
public FileSelectLayout( Context context,AttributeSet attrset) {
super(context,attrset);
@@ -51,6 +52,8 @@ public class FileSelectLayout extends LinearLayout implements OnClickListener {
startFC.putExtra(FileSelect.WINDOW_TITLE,mTitle);
if(mNoInline)
startFC.putExtra(FileSelect.NO_INLINE_SELECTION, true);
+ if(mShowClear)
+ startFC.putExtra(FileSelect.SHOW_CLEAR_BUTTON, true);
mFragment.startActivityForResult(startFC,mTaskId);
}
@@ -81,5 +84,8 @@ public class FileSelectLayout extends LinearLayout implements OnClickListener {
mNoInline=true;
}
+ public void setShowClear() {
+ mShowClear=true;
+ }
}