diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-03-14 14:24:57 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-03-14 14:24:57 +0100 |
commit | 0bd37447329c4c1e40e46d111ea94a8adeac00f0 (patch) | |
tree | b1cdcfed213211c443f4e0db22fb2efa646ada95 /src/de | |
parent | 96ccb0151c46c87b29127dde0afe6edbf048bdf3 (diff) |
When adding a profile show edit activity
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/blinkt/openvpn/fragments/VPNProfileList.java | 7 |
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()); |