Skip to content

Commit

Permalink
remove apply in android updateProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nbransby committed Oct 22, 2020
1 parent 3833e46 commit 268c6e2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ actual class FirebaseUser internal constructor(val android: com.google.firebase.
actual suspend fun updatePassword(password: String) = android.updatePassword(password).await().run { Unit }
actual suspend fun updatePhoneNumber(credential: PhoneAuthCredential) = android.updatePhoneNumber(credential.android).await().run { Unit }
actual suspend fun updateProfile(displayName: String?, photoUrl: String?) {
val request = UserProfileChangeRequest.Builder().apply {
this.displayName = displayName
photoUri = photoURL?.let { Uri.parse(it) }
}.build()
val request = UserProfileChangeRequest.Builder()
.setDisplayName(displayName)
.setPhotoUri(photoURL?.let { Uri.parse(it) })
.build()
android.updateProfile(request).await()
}
actual suspend fun verifyBeforeUpdateEmail(newEmail: String, actionCodeSettings: ActionCodeSettings?) =
Expand Down

0 comments on commit 268c6e2

Please sign in to comment.