diff options
author | schwabe <devnull@localhost> | 2012-04-28 19:58:02 +0200 |
---|---|---|
committer | schwabe <devnull@localhost> | 2012-04-28 19:58:02 +0200 |
commit | 63e466054c2f1d66e4618ac4d73208751f1e5bd1 (patch) | |
tree | 84a00021ec486093b406ec050087ee486f6e6958 /src/de/blinkt/openvpn/FileSelectLayout.java | |
parent | 031186e74c9f174d05a09c4059def7bcbc558ac6 (diff) |
Almost ready for version 0.4
Diffstat (limited to 'src/de/blinkt/openvpn/FileSelectLayout.java')
-rw-r--r-- | src/de/blinkt/openvpn/FileSelectLayout.java | 11 |
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 { } - } |