Fix controller navigation on two panel launcher home

Test: manual test with a game controller, check on both normal and two panel home
Bug: 187205980
Change-Id: I2515e476556098acf407c0bdcd634e3dd1cb308c
This commit is contained in:
Andras Kloczl
2021-05-06 12:50:28 +02:00
parent e6935d895a
commit 7e91244a1b
2 changed files with 91 additions and 53 deletions

View File

@@ -36,6 +36,15 @@ public class IntSet implements Iterable<Integer> {
}
}
/**
* Appends the specified IntSet's values to the set if they does not exist, then returns the
* original set that now also contains the new values.
*/
public IntSet addAll(IntSet other) {
other.forEach(this::add);
return this;
}
/**
* Removes the specified value from the set if it exist.
*/