mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Replace .toList() with .collect()
.toList() was only introduced to android in api level 34, which is newer than this module's min_sdk_version. Replace it with .collect(). This was found while updating android lint. Flag: EXEMPT refactor Bug: 394096385 Test: Presubmits Change-Id: Id8d1de1531b67a7daf448e45592b7ef78f685fc2
This commit is contained in:
@@ -399,8 +399,9 @@ public class InvariantDeviceProfile implements SafeCloseable {
|
||||
|
||||
private List<DisplayOption> filterByColumnCount(
|
||||
List<DisplayOption> allOptions, int numColumns) {
|
||||
return allOptions.stream().filter(
|
||||
option -> option.grid.numColumns == numColumns).toList();
|
||||
return allOptions.stream()
|
||||
.filter(option -> option.grid.numColumns == numColumns)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user