This commit is contained in:
Phillip Thelen 2019-01-07 15:39:51 +01:00
parent d58543adcc
commit 5629020d0e

View file

@ -68,7 +68,7 @@ class ProfilePreferencesFragment: BasePreferencesFragment(), SharedPreferences.O
"photo_url" -> {
val newName = sharedPreferences.getString(key, "") ?: ""
if (newName != user?.profile?.imageUrl) {
userRepository.updateUser(user, "profile.photo", newValue)
userRepository.updateUser(user, "profile.imageUrl", newValue)
} else {
null
}