Cleanup: use stream.toList().

This commit is contained in:
Dennis Guse
2023-10-01 20:10:50 +02:00
parent 2e76458b62
commit 8c8a7d9496
10 changed files with 15 additions and 23 deletions
@@ -724,7 +724,7 @@ public class PreferencesUtils {
R.array.stats_custom_layout_fields_default_value_16,
R.array.stats_custom_layout_fields_default_value_17,
R.array.stats_custom_layout_fields_default_value_18
).map(id -> resources.obtainTypedArray(id)).collect(Collectors.toList());
).map(id -> resources.obtainTypedArray(id)).toList();
}
@SuppressLint("ResourceType")
@@ -799,7 +799,7 @@ public class PreferencesUtils {
}
public static List<String> getAllCustomLayoutNames() {
return getAllCustomLayouts().stream().map(RecordingLayout::getName).collect(Collectors.toList());
return getAllCustomLayouts().stream().map(RecordingLayout::getName).toList();
}
public static void resetCustomLayoutPreferences() {