-
Notifications
You must be signed in to change notification settings - Fork 555
fix: User avatar not loading in EditProfileFragment #654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
codepoet2017390
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should not change any gradle file. Also it would be better if you remove the extra spaces
|
Please follow PR guidelines |
Hello! This is my first PR on any FOSS project. I'd really appreciate some guidance on what I'm doing wrong. Please let me know the PR guidelines. |
| rootView.lastName.setText(userLastName) | ||
| Picasso.get() | ||
| .load(imageUrl) | ||
| .placeholder(AppCompatResources.getDrawable(context!!, R.drawable.ic_account_circle_grey_24dp)!!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the exclamation marks and click on the red bulb that appears.
You can then select the option to wrap it with ?. let call .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'm adding null checks to it right now. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created a new commit that adds a null check to the drawable and context. Is this okay?
d0f2afe to
8b1e98f
Compare
|
@nikit19 @codepoet2017390 This commit incorporates the requested changes. Please review and confirm. |
|
Yes the project maintainers will take care of that further |
5c54f0f to
8b1e98f
Compare
|
Looks good code wise. |
This commit adds the logic for loading user avatar in EditProfileFragment. The fragment now reflects the actual avatar of the user when they are editing their profile.
8b1e98f to
edfec68
Compare
|
@nikit19 I have amended the commit title and the PR title accordingly. Thanks for the feedback 😊 |
|
So the PR is now accepted and will be merged? Woohoo! Thanks for the help @codepoet2017390 @iamareebjamal @nikit19 😊 This was my first pull request to an open source project. Looking forward to contributing more! |
Fixes #653
Changes: Added logic to load the user's profile avatar in the EditProfileFragment.
Screenshots for the change:
