summaryrefslogtreecommitdiff
path: root/src/de
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-03-14 14:24:57 +0100
committerArne Schwabe <arne@rfc2549.org>2013-03-14 14:24:57 +0100
commit0bd37447329c4c1e40e46d111ea94a8adeac00f0 (patch)
treeb1cdcfed213211c443f4e0db22fb2efa646ada95 /src/de
parent96ccb0151c46c87b29127dde0afe6edbf048bdf3 (diff)
When adding a profile show edit activity
Diffstat (limited to 'src/de')
-rw-r--r--src/de/blinkt/openvpn/fragments/VPNProfileList.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/de/blinkt/openvpn/fragments/VPNProfileList.java b/src/de/blinkt/openvpn/fragments/VPNProfileList.java
index 7a8362d1..b616f656 100644
--- a/src/de/blinkt/openvpn/fragments/VPNProfileList.java
+++ b/src/de/blinkt/openvpn/fragments/VPNProfileList.java
@@ -71,8 +71,8 @@ public class VPNProfileList extends ListFragment {
@Override
public void onClick(View v) {
- mEditProfile =(VpnProfile) getListAdapter().getItem(position);
- editVPN(mEditProfile);
+ VpnProfile editProfile = (VpnProfile) getListAdapter().getItem(position);
+ editVPN(editProfile);
}
});
@@ -233,6 +233,7 @@ public class VPNProfileList extends ListFragment {
if (getPM().getProfileByName(name)==null) {
VpnProfile profile = new VpnProfile(name);
addProfile(profile);
+ editVPN(profile);
} else {
Toast.makeText(getActivity(), R.string.duplicate_profile_name, Toast.LENGTH_LONG).show();
}
@@ -299,7 +300,7 @@ public class VPNProfileList extends ListFragment {
private void editVPN(VpnProfile profile) {
-
+ mEditProfile =profile;
Intent vprefintent = new Intent(getActivity(),VPNPreferences.class)
.putExtra(getActivity().getPackageName() + ".profileUUID", profile.getUUID().toString());