Small fixes for nsfw
This commit is contained in:
parent
0e396655c6
commit
2ea75860a6
|
@ -794,9 +794,19 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn
|
||||||
for (int i = statuses.size() - 1; i >= 0; i--) {
|
for (int i = statuses.size() - 1; i >= 0; i--) {
|
||||||
if( this.statuses != null) {
|
if( this.statuses != null) {
|
||||||
if( type != RetrieveFeedsAsyncTask.Type.HOME){
|
if( type != RetrieveFeedsAsyncTask.Type.HOME){
|
||||||
if( Long.parseLong(statuses.get(i).getId()) > Long.parseLong(this.statuses.get(0).getId())) {
|
if( tagTimeline == null || !tagTimeline.isART() || (tagTimeline.isART() && tagTimeline.isNSFW())) {
|
||||||
inserted++;
|
if (Long.parseLong(statuses.get(i).getId()) > Long.parseLong(this.statuses.get(0).getId())) {
|
||||||
this.statuses.add(0, statuses.get(i));
|
inserted++;
|
||||||
|
this.statuses.add(0, statuses.get(i));
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
ArrayList<Status> safeStatuses = new ArrayList<>();
|
||||||
|
for(Status status: statuses){
|
||||||
|
if( !status.isSensitive())
|
||||||
|
safeStatuses.add(status);
|
||||||
|
}
|
||||||
|
this.statuses.addAll(safeStatuses);
|
||||||
|
statusListAdapter.notifyItemRangeInserted(0, safeStatuses.size());
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
if( lastReadToot != null && Long.parseLong(statuses.get(i).getId()) > Long.parseLong(lastReadToot)) {
|
if( lastReadToot != null && Long.parseLong(statuses.get(i).getId()) > Long.parseLong(lastReadToot)) {
|
||||||
|
|
Loading…
Reference in New Issue