clean-up migrated back to collect to list for lower v

This commit is contained in:
MrSluffy
2024-12-18 11:47:38 +08:00
parent 9d387bb310
commit f1a292495c
18 changed files with 60 additions and 68 deletions

View File

@@ -1516,7 +1516,7 @@ public class BubbleController implements ConfigurationChangeListener,
}
mOverflowDataLoadNeeded = false;
List<UserInfo> users = mUserManager.getAliveUsers();
List<Integer> userIds = users.stream().map(userInfo -> userInfo.id).toList();
List<Integer> userIds = users.stream().map(userInfo -> userInfo.id).collect(Collectors.toList());
mDataRepository.loadBubbles(mCurrentUserId, userIds, (bubbles) -> {
bubbles.forEach(bubble -> {
if (mBubbleData.hasAnyBubbleWithKey(bubble.getKey())) {