summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/FileSelectLayout.java
diff options
context:
space:
mode:
authorschwabe <none@none>2012-04-28 19:58:02 +0200
committerschwabe <none@none>2012-04-28 19:58:02 +0200
commit6dbfffefaf70609ac5bb7b3ebd71a0258427360a (patch)
tree84a00021ec486093b406ec050087ee486f6e6958 /src/de/blinkt/openvpn/FileSelectLayout.java
parent6f74ca80d395542ae92e7e9eb97af11aa4c706bd (diff)
Almost ready for version 0.4
Diffstat (limited to 'src/de/blinkt/openvpn/FileSelectLayout.java')
-rw-r--r--src/de/blinkt/openvpn/FileSelectLayout.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/de/blinkt/openvpn/FileSelectLayout.java b/src/de/blinkt/openvpn/FileSelectLayout.java
index 71fd0fe4..2eba9515 100644
--- a/src/de/blinkt/openvpn/FileSelectLayout.java
+++ b/src/de/blinkt/openvpn/FileSelectLayout.java
@@ -1,6 +1,6 @@
package de.blinkt.openvpn;
-import android.app.Activity;
+import android.app.Fragment;
import android.content.Context;
import android.content.Intent;
import android.content.res.TypedArray;
@@ -17,7 +17,7 @@ import com.lamerman.SelectionMode;
public class FileSelectLayout extends LinearLayout implements OnClickListener {
private TextView mData;
- private Activity mActivity;
+ private Fragment mFragment;
private int mTaskId;
private Button mSelectButton;
@@ -38,10 +38,10 @@ public class FileSelectLayout extends LinearLayout implements OnClickListener {
}
- public void setActivity(Activity a, int i)
+ public void setFragment(Fragment fragment, int i)
{
mTaskId = i;
- mActivity = a;
+ mFragment = fragment;
}
public void getCertificateFileDialog() {
@@ -49,7 +49,7 @@ public class FileSelectLayout extends LinearLayout implements OnClickListener {
startFC.putExtra(FileDialog.START_PATH, "/sdcard");
startFC.putExtra(FileDialog.SELECTION_MODE, SelectionMode.MODE_OPEN);
- mActivity.startActivityForResult(startFC,mTaskId);
+ mFragment.startActivityForResult(startFC,mTaskId);
}
@@ -70,5 +70,4 @@ public class FileSelectLayout extends LinearLayout implements OnClickListener {
}
-
}