Fix link posts displayed as text posts in PostRecyclerViewAdapter.

This commit is contained in:
Alex Ning 2021-07-21 19:55:18 +08:00
parent 2a47c924f5
commit f2df7e94b1

View File

@ -384,6 +384,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
case SharedPreferencesUtils.POST_LAYOUT_COMPACT: case SharedPreferencesUtils.POST_LAYOUT_COMPACT:
return VIEW_TYPE_POST_COMPACT; return VIEW_TYPE_POST_COMPACT;
} }
return VIEW_TYPE_POST_CARD_WITH_PREVIEW_TYPE;
default: default:
return VIEW_TYPE_POST_CARD_TEXT_TYPE; return VIEW_TYPE_POST_CARD_TEXT_TYPE;
} }
@ -432,6 +433,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
case SharedPreferencesUtils.POST_LAYOUT_COMPACT: case SharedPreferencesUtils.POST_LAYOUT_COMPACT:
return VIEW_TYPE_POST_COMPACT; return VIEW_TYPE_POST_COMPACT;
} }
return VIEW_TYPE_POST_CARD_2_WITH_PREVIEW_TYPE;
default: default:
return VIEW_TYPE_POST_CARD_2_TEXT_TYPE; return VIEW_TYPE_POST_CARD_2_TEXT_TYPE;
} }