ajh3 / NoSurfForReddit

Apache License 2.0
25 stars 2 forks source link

Some posts display thumbnail image but not full-size preview, or vice-versa #10

Open ajh3 opened 5 years ago

ajh3 commented 5 years ago

Seems to be a bug in the reddit API, but should be able to work around it

ajh3 commented 5 years ago

42b5b11 solves half of this, namely, Glide was trying to show animated images in PostFragment which downloaded so slowly (for unknown reasons) that the image appeared not to load.

the other half, missing post thumbnails, still needs to be fixed. this should only happen for cases where reddit cannot generate a thumbnail, or cases where the user is logged out and the subreddit disables thumbnails. for some reason NoSurf is not displaying thumbnails in the latter case even when the user is logged in. https://www.reddit.com/r/redditdev/comments/a2awdk/api_returns_default_for_post_thumbnail_even/