From 0164516343e852561dd68a5c7be22527a57fb1f2 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Mon, 6 Jul 2020 14:36:21 -0400 Subject: [PATCH] fix avatar persistence --- .../main/java/awais/instagrabber/adapters/PostsAdapter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/adapters/PostsAdapter.java b/app/src/main/java/awais/instagrabber/adapters/PostsAdapter.java index 888e3cdc..d74a9efd 100755 --- a/app/src/main/java/awais/instagrabber/adapters/PostsAdapter.java +++ b/app/src/main/java/awais/instagrabber/adapters/PostsAdapter.java @@ -89,8 +89,10 @@ public final class PostsAdapter extends RecyclerView.Adapter { 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)