diff --git a/mobile/src/main/java/com/github/shadowsocks/ProfileConfigFragment.kt b/mobile/src/main/java/com/github/shadowsocks/ProfileConfigFragment.kt index 9e8d3e58..c7dcdd2e 100644 --- a/mobile/src/main/java/com/github/shadowsocks/ProfileConfigFragment.kt +++ b/mobile/src/main/java/com/github/shadowsocks/ProfileConfigFragment.kt @@ -124,7 +124,7 @@ class ProfileConfigFragment : PreferenceFragmentCompatDividers(), Toolbar.OnMenu } fun saveAndExit() { - val profile = Profile() + val profile = ProfileManager.getProfile(profileId) ?: Profile() profile.id = profileId profile.deserialize() ProfileManager.updateProfile(profile)