From 7ef4e9634718245fb2e9e01412119b96ef368441 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Sat, 21 Jul 2012 00:23:13 +0200 Subject: Allow clearing of the CA Cert (closes issue #57) --- src/de/blinkt/openvpn/FileSelectLayout.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/de/blinkt/openvpn/FileSelectLayout.java') 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; + } } -- cgit v1.2.3