From 9b38d9258e83e0808ebf3b7ab30869f33433ed59 Mon Sep 17 00:00:00 2001 From: Chris Bianca Date: Wed, 5 Apr 2017 09:09:45 +0100 Subject: [PATCH] Bring Android updateProfile photoURL in line with web SDK and iOS naming --- .../java/io/invertase/firebase/auth/RNFirebaseAuth.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java b/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java index 22af8aba..a834b009 100644 --- a/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java +++ b/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java @@ -439,9 +439,9 @@ public class RNFirebaseAuth extends ReactContextBaseJavaModule { profileBuilder.setDisplayName(displayName); } - if (props.hasKey("photoUri")) { - String photoUriStr = props.getString("photoUri"); - Uri uri = Uri.parse(photoUriStr); + if (props.hasKey("photoURL")) { + String photoURLStr = props.getString("photoURL"); + Uri uri = Uri.parse(photoURLStr); profileBuilder.setPhotoUri(uri); }