Bundle bundle = intent.getExtras();
if (bundle != null)
{
- profile = mDataSource.getVpnProfile(bundle.getLong(VpnProfileDataSource.KEY_ID));
+ profile = mDataSource.getVpnProfile(bundle.getString(VpnProfileDataSource.KEY_UUID));
if (profile != null)
{
String password = bundle.getString(VpnProfileDataSource.KEY_PASSWORD);
if (profileInfo == null)
{
profileInfo = new Bundle();
- profileInfo.putLong(VpnProfileDataSource.KEY_ID, mProfile.getId());
+ profileInfo.putString(VpnProfileDataSource.KEY_UUID, mProfile.getUUID().toString());
/* pass the previous password along */
profileInfo.putString(VpnProfileDataSource.KEY_PASSWORD, mProfile.getPassword());
}
public void startVpnProfile(VpnProfile profile)
{
Bundle profileInfo = new Bundle();
- profileInfo.putLong(VpnProfileDataSource.KEY_ID, profile.getId());
+ profileInfo.putString(VpnProfileDataSource.KEY_UUID, profile.getUUID().toString());
profileInfo.putString(VpnProfileDataSource.KEY_USERNAME, profile.getUsername());
profileInfo.putString(VpnProfileDataSource.KEY_PASSWORD, profile.getPassword());
profileInfo.putBoolean(PROFILE_REQUIRES_PASSWORD, profile.getVpnType().has(VpnTypeFeature.USER_PASS));