mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Stop clearing focus when snapping to a new workspace page.
Clearing the focus was causing the first child in the new page to immediately take focus, which caused FocusIndicatorView jank when using a keyboard. Bug: 25256728 Change-Id: I5ab31ebc3fe370d7ac9e9792b30dab3467023738
This commit is contained in:
@@ -397,7 +397,6 @@ public class FocusHelper {
|
||||
if (newIconIndex == FocusLogic.PREVIOUS_PAGE_LEFT_COLUMN) {
|
||||
newPageIndex = pageIndex - 1;
|
||||
}
|
||||
workspace.snapToPage(newPageIndex);
|
||||
row = ((CellLayout.LayoutParams) v.getLayoutParams()).cellY;
|
||||
parent = getCellLayoutChildrenForIndex(workspace, newPageIndex);
|
||||
if (parent != null) {
|
||||
|
||||
@@ -2078,11 +2078,6 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
|
||||
whichPage = validateNewPage(whichPage);
|
||||
|
||||
mNextPage = whichPage;
|
||||
View focusedChild = getFocusedChild();
|
||||
if (focusedChild != null && whichPage != mCurrentPage &&
|
||||
focusedChild == getPageAt(mCurrentPage)) {
|
||||
focusedChild.clearFocus();
|
||||
}
|
||||
|
||||
pageBeginMoving();
|
||||
awakenScrollBars(duration);
|
||||
|
||||
Reference in New Issue
Block a user