mirror of
https://github.com/KokaKiwi/BarInsta
synced 2025-12-08 13:16:31 +00:00
fix avatar persistence
This commit is contained in:
parent
5952bf4b60
commit
0164516343
1 changed files with 3 additions and 1 deletions
|
|
@ -89,8 +89,10 @@ public final class PostsAdapter extends RecyclerView.Adapter<PostViewHolder> {
|
||||||
final HttpURLConnection conn = (HttpURLConnection) new URL(postModel.getDisplayUrl()).openConnection();
|
final HttpURLConnection conn = (HttpURLConnection) new URL(postModel.getDisplayUrl()).openConnection();
|
||||||
conn.setUseCaches(false);
|
conn.setUseCaches(false);
|
||||||
conn.connect();
|
conn.connect();
|
||||||
if (conn.getResponseCode() != HttpURLConnection.HTTP_GONE)
|
if (conn.getResponseCode() != HttpURLConnection.HTTP_GONE) {
|
||||||
glideRequestManager.load(postModel.getDisplayUrl()).into(holder.postImage);
|
glideRequestManager.load(postModel.getDisplayUrl()).into(holder.postImage);
|
||||||
|
}
|
||||||
|
else return true;
|
||||||
}
|
}
|
||||||
catch (Exception urle) {
|
catch (Exception urle) {
|
||||||
if (logCollector != null)
|
if (logCollector != null)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue