aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-21 11:55:18 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-21 11:55:18 +0000
commitf2df7e94b15f9b9fcdb903689816eaafaa782c5a (patch)
tree8b31e2fa096b9bd7edffbfcce37736b955131567 /app/src/main
parent2a47c924f5b60b83b82770b5ca355eab9459b882 (diff)
downloadinfinity-for-reddit-f2df7e94b15f9b9fcdb903689816eaafaa782c5a.tar
infinity-for-reddit-f2df7e94b15f9b9fcdb903689816eaafaa782c5a.tar.gz
infinity-for-reddit-f2df7e94b15f9b9fcdb903689816eaafaa782c5a.tar.bz2
infinity-for-reddit-f2df7e94b15f9b9fcdb903689816eaafaa782c5a.tar.lz
infinity-for-reddit-f2df7e94b15f9b9fcdb903689816eaafaa782c5a.tar.xz
infinity-for-reddit-f2df7e94b15f9b9fcdb903689816eaafaa782c5a.tar.zst
infinity-for-reddit-f2df7e94b15f9b9fcdb903689816eaafaa782c5a.zip
Fix link posts displayed as text posts in PostRecyclerViewAdapter.
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
index 97e916cc..2ab23dca 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
@@ -384,6 +384,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
case SharedPreferencesUtils.POST_LAYOUT_COMPACT:
return VIEW_TYPE_POST_COMPACT;
}
+ return VIEW_TYPE_POST_CARD_WITH_PREVIEW_TYPE;
default:
return VIEW_TYPE_POST_CARD_TEXT_TYPE;
}
@@ -432,6 +433,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
case SharedPreferencesUtils.POST_LAYOUT_COMPACT:
return VIEW_TYPE_POST_COMPACT;
}
+ return VIEW_TYPE_POST_CARD_2_WITH_PREVIEW_TYPE;
default:
return VIEW_TYPE_POST_CARD_2_TEXT_TYPE;
}