summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/FileSelectLayout.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/FileSelectLayout.java
parent1f5ea346167406d4d2e734b4595786bbb8ad1089 (diff)
Allow clearing of the CA Cert (closes issue #57)
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;
+ }
}