Fix launcher preview for two panel home

Test: manual
Bug: 185508060
Gif: http://shortn/_oOgKLjg5QC
Change-Id: I216b3761b3bd15c7069b92aa4a1bff8ad655b767
This commit is contained in:
Andras Kloczl
2021-06-23 12:18:08 +02:00
parent e23dd92a55
commit ac3f08558c
6 changed files with 123 additions and 21 deletions

View File

@@ -101,6 +101,15 @@ public class IntSet implements Iterable<Integer> {
return wrap(IntArray.wrap(array));
}
/**
* Returns an IntSet with the given values.
*/
public static IntSet wrap(Iterable<Integer> iterable) {
IntSet set = new IntSet();
iterable.forEach(set::add);
return set;
}
@Override
public Iterator<Integer> iterator() {
return mArray.iterator();