1
0
의 미러 https://github.com/KokaKiwi/BarInsta synced 2025-09-18 15:08:00 +00:00

fix avatar persistence

This commit is contained in:
Austin Huang 2020-07-06 14:36:21 -04:00
부모 5952bf4b60
커밋 0164516343
No known key found for this signature in database
GPG 키 ID: 84C23AA04587A91F

파일 보기

@ -89,8 +89,10 @@ public final class PostsAdapter extends RecyclerView.Adapter<PostViewHolder> {
final HttpURLConnection conn = (HttpURLConnection) new URL(postModel.getDisplayUrl()).openConnection();
conn.setUseCaches(false);
conn.connect();
if (conn.getResponseCode() != HttpURLConnection.HTTP_GONE)
if (conn.getResponseCode() != HttpURLConnection.HTTP_GONE) {
glideRequestManager.load(postModel.getDisplayUrl()).into(holder.postImage);
}
else return true;
}
catch (Exception urle) {
if (logCollector != null)