1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-22 14:47:29 +00:00

Returned FeedAdapterV2 to its original code

This commit is contained in:
zerrium 2021-03-18 14:02:58 +07:00
parent 0a672476d9
commit 12a669ee3a

View File

@ -154,15 +154,6 @@ public final class FeedAdapterV2 extends ListAdapter<Media, RecyclerView.ViewHol
public void onBindViewHolder(@NonNull final RecyclerView.ViewHolder viewHolder, final int position) { public void onBindViewHolder(@NonNull final RecyclerView.ViewHolder viewHolder, final int position) {
final Media feedModel = getItem(position); final Media feedModel = getItem(position);
if (feedModel == null) return; if (feedModel == null) return;
//Turn a junk (sponsored) instagram post from people we following into a blank post, I need help to improve this part
String c = feedModel.getCaption().getText();
if(FilterKeywords.filter(c)){
Log.d(TAG, "Filtered:\n" + c + "\n");
return;
}
//Zerrium (18 Mar 2021)
switch (layoutPreferences.getType()) { switch (layoutPreferences.getType()) {
case LINEAR: case LINEAR:
((FeedItemViewHolder) viewHolder).bind(feedModel); ((FeedItemViewHolder) viewHolder).bind(feedModel);