Fix usage stats not saved

This commit is contained in:
Mygod
2018-03-23 01:57:13 -07:00
parent 3c532f1ac5
commit cffd9d1eb4
@@ -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)