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, 9 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/FileSelectionFragment.java b/src/de/blinkt/openvpn/FileSelectionFragment.java
index 31390280..41c7a1eb 100644
--- a/src/de/blinkt/openvpn/FileSelectionFragment.java
+++ b/src/de/blinkt/openvpn/FileSelectionFragment.java
@@ -51,6 +51,7 @@ public class FileSelectionFragment extends ListFragment {
private HashMap<String, Integer> lastPositions = new HashMap<String, Integer>();
private String mStartPath;
private Button importFile;
+ private boolean mHideImport=false;
@Override
@@ -73,6 +74,7 @@ public class FileSelectionFragment extends ListFragment {
}
});
+
importFile = (Button) v.findViewById(R.id.importfile);
importFile.setEnabled(false);
importFile.setOnClickListener(new OnClickListener() {
@@ -83,7 +85,9 @@ public class FileSelectionFragment extends ListFragment {
}
});
-
+ if(mHideImport== true) {
+ importFile.setVisibility(View.GONE);
+ }
return v;
@@ -241,4 +245,8 @@ public class FileSelectionFragment extends ListFragment {
}
}
+ public void setNoInLine() {
+ mHideImport=true;
+ }
+
}