Bring Android updateProfile photoURL in line with web SDK and iOS naming

This commit is contained in:
Chris Bianca
2017-04-05 09:09:45 +01:00
parent f6ee3ff6f9
commit 9b38d9258e

View File

@@ -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);
}