Skip to content

Commit

Permalink
Add picture for doctorProfile and SearchDoctors
Browse files Browse the repository at this point in the history
  • Loading branch information
YassineBOUJNAH committed Jun 3, 2020
1 parent 7fd3e86 commit 52cdfed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private String getFileExtension(Uri uri) {
private void uploadProfileImage() {
/* check if the image is not null */
if (uriImage != null) {
StorageReference storageReference = pStorageRef.child(System.currentTimeMillis()
StorageReference storageReference = pStorageRef.child(FirebaseAuth.getInstance().getCurrentUser().getEmail()
+ "." + getFileExtension(uriImage));
storageReference.putFile(uriImage).continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {
@Override
Expand Down

0 comments on commit 52cdfed

Please sign in to comment.