Merge branch 'filter_toots' into improves_toots
This commit is contained in:
commit
ab730ec91b
|
@ -161,6 +161,7 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf
|
|||
|
||||
@Override
|
||||
public int getItemViewType(int position) {
|
||||
if( type == RetrieveFeedsAsyncTask.Type.HOME) {
|
||||
Status status = statuses.get(position);
|
||||
SharedPreferences sharedpreferences = context.getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
|
||||
if (status.getReblog() != null && !sharedpreferences.getBoolean(Helper.SET_SHOW_BOOSTS, true))
|
||||
|
@ -169,6 +170,9 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf
|
|||
return HIDDEN_STATUS;
|
||||
else
|
||||
return DISPLAYED_STATUS;
|
||||
}else {
|
||||
return DISPLAYED_STATUS;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue