Skip to content

Conversation

@haroldadmin
Copy link
Contributor

Fixes #653
Changes: Added logic to load the user's profile avatar in the EditProfileFragment.

Screenshots for the change:
fixed-screenshot

Copy link
Member

@codepoet2017390 codepoet2017390 left a 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

@iamareebjamal
Copy link
Member

Please follow PR guidelines

@haroldadmin
Copy link
Contributor Author

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.

@iamareebjamal
Copy link
Member

rootView.lastName.setText(userLastName)
Picasso.get()
.load(imageUrl)
.placeholder(AppCompatResources.getDrawable(context!!, R.drawable.ic_account_circle_grey_24dp)!!)
Copy link
Member

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 .

Copy link
Contributor Author

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!

Copy link
Contributor Author

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?

@haroldadmin haroldadmin force-pushed the development branch 2 times, most recently from d0f2afe to 8b1e98f Compare October 23, 2018 19:12
@haroldadmin
Copy link
Contributor Author

@nikit19 @codepoet2017390 This commit incorporates the requested changes. Please review and confirm.

@codepoet2017390
Copy link
Member

Yes the project maintainers will take care of that further

@nikit19
Copy link
Member

nikit19 commented Oct 23, 2018

Looks good code wise.
We follow this guide for writing proper commit messages. https://chris.beams.io/posts/git-commit/
Could update the PR title and commit message accordingly

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.
@haroldadmin haroldadmin changed the title Fixed Issue #653 Fix Issue #653 from open-event-android/develop branch Oct 23, 2018
@haroldadmin haroldadmin changed the title Fix Issue #653 from open-event-android/develop branch fix: User avatar not loading in EditProfileFragment Oct 23, 2018
@haroldadmin
Copy link
Contributor Author

@nikit19 I have amended the commit title and the PR title accordingly. Thanks for the feedback 😊

@haroldadmin
Copy link
Contributor Author

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!

@nikit19 nikit19 merged commit 8cb8c36 into fossasia:development Oct 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EditProfileFragment does not display the user's avatar picture

4 participants