-
Notifications
You must be signed in to change notification settings - Fork 8
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
syncronizedimages with their info, removed the progress bar, sped #17
base: master
Are you sure you want to change the base?
Conversation
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.
The idea is right in that the photo was too large. However, the solution has a bug :)
@@ -86,16 +90,29 @@ public void onResponse(JSONObject response) { | |||
try { | |||
sizes = response.getJSONObject("sizes").getJSONArray("size"); | |||
photoUrl = sizes | |||
.getJSONObject(sizes.length() - 1) | |||
.getJSONObject(sizes.length() - 3) //finding a smaller size will speed up load times |
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.
Bug:
what if the length of sizes is less than 3?
Response.ErrorListener errorListener = new Response.ErrorListener() { | ||
@Override | ||
public void onErrorResponse(VolleyError error) { | ||
//things2 |
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.
Huh?
//things2 | ||
} | ||
}; | ||
//solution is deprecated: better, worse or equivalent to hacky? |
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.
What do you mean here?
loads