1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ actual class FirebaseUser internal constructor(val android: com.google.firebase.
46
46
actual suspend fun updatePassword (password : String ) = android.updatePassword(password).await().run { Unit }
47
47
actual suspend fun updatePhoneNumber (credential : PhoneAuthCredential ) = android.updatePhoneNumber(credential.android).await().run { Unit }
48
48
actual suspend fun updateProfile (displayName : String? , photoUrl : String? ) {
49
- val request = UserProfileChangeRequest .Builder (). apply {
50
- this . displayName = displayName
51
- photoUri = photoURL?.let { Uri .parse(it) }
52
- } .build()
49
+ val request = UserProfileChangeRequest .Builder ()
50
+ .setDisplayName( displayName)
51
+ .setPhotoUri( photoURL?.let { Uri .parse(it) })
52
+ .build()
53
53
android.updateProfile(request).await()
54
54
}
55
55
actual suspend fun verifyBeforeUpdateEmail (newEmail : String , actionCodeSettings : ActionCodeSettings ? ) =
0 commit comments