Skip to content
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

583/Use REST api to retrieve chapter image #587

Merged
merged 5 commits into from
Mar 17, 2016

Conversation

friedger
Copy link
Contributor

This PR adds a retrofit service for the Google plus REST API.

It is used to retrieve chapter images in the event details page.

return isDefault;
}

public void setUrl(String url) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be safer to delete these setters. I guess you are not using them.

}

private void loadChapterImageInto(String gplusId, ImageView groupLogo) {
App.getInstance().getPlusApi().getImageInfo(gplusId).enqueue(new retrofit2.Callback<ImageInfo>() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use our Callback. If you use this, necessary things like idlingResources won't happen.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your are right, but the reason is Timber logging, not idlingResources

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's where idlingResources are registered. And then when the request is finished, they need to be released. We are using our Callback everywhere. So, if we use this here, it will make problems later.

@tasomaniac
Copy link
Member

👍

tasomaniac added a commit that referenced this pull request Mar 17, 2016
583/Use REST api to retrieve chapter image
@tasomaniac tasomaniac merged commit 4dc35d8 into develop Mar 17, 2016
@friedger friedger deleted the 583/anonymous_chapter_image branch March 22, 2016 08:44
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.

2 participants