mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 00:36:49 +00:00
Always focus a task in overview
- Focus first task when applying load plan - Focus the next task in shorter row when focused task is dismissed, scale the snapshot and translate the task into focused position - Always show actions view as there is always a focused task. Update scroll alpha when toggling grid enabled - In fallback recents, take into account that home task will be dismissed when determining rows for the grid, ensuring next focused task won't affect row balancing - Bring back clearAllShortTotalCompensation as there isn't always a snappedTaskView (e.g. when snapped to ClearAllButton) - Ensure that getFocusedTaskView is only used when showAsGrid is true Bug: 187839470 Fixes: 188001858 Fixes: 189057812 Test: manual Change-Id: I6f31ef469c58fda70d2dd8caa2ee7d8a80c7f03b
This commit is contained in:
@@ -34,6 +34,16 @@ public class IntSet {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes the specified value from the set if it exist.
|
||||
*/
|
||||
public void remove(int value) {
|
||||
int index = Arrays.binarySearch(mArray.mValues, 0, mArray.mSize, value);
|
||||
if (index >= 0) {
|
||||
mArray.removeIndex(index);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean contains(int value) {
|
||||
return Arrays.binarySearch(mArray.mValues, 0, mArray.mSize, value) >= 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user