Fix issue #694 - Home muted not working with no filters

This commit is contained in:
Thomas 2022-12-28 15:36:39 +01:00
parent d34425f5b3
commit 3e16d0c310

View file

@ -156,7 +156,8 @@ public class TimelineHelper {
} }
} }
} }
}
if (statuses != null && statuses.size() > 0) {
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(context);
boolean groupReblogs = sharedpreferences.getBoolean(context.getString(R.string.SET_GROUP_REBLOGS), true); boolean groupReblogs = sharedpreferences.getBoolean(context.getString(R.string.SET_GROUP_REBLOGS), true);
if (filterTimeLineType == Timeline.TimeLineEnum.HOME) { if (filterTimeLineType == Timeline.TimeLineEnum.HOME) {
@ -172,6 +173,7 @@ public class TimelineHelper {
filterCustom.title = "Fedilab"; filterCustom.title = "Fedilab";
filterCustom.context = contextCustom; filterCustom.context = contextCustom;
statuses.get(i).filteredByApp = filterCustom; statuses.get(i).filteredByApp = filterCustom;
break;
} }
} }
} }