Merge "Revert "Fix touch focus not updated correctly after launching overview with live tile."" into udc-dev am: 41bfd86c1e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22976087 Change-Id: Ice98de9e628b666eb27c1a60f6ea824c8139159d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -61,14 +61,6 @@ public class OverviewInputConsumer<S extends BaseState<S>, T extends StatefulAct
|
|||||||
|
|
||||||
mTarget = activity.getDragLayer();
|
mTarget = activity.getDragLayer();
|
||||||
mTarget.getLocationOnScreen(mLocationOnScreen);
|
mTarget.getLocationOnScreen(mLocationOnScreen);
|
||||||
|
|
||||||
// When Overview is launched via meta+tab or swipe up from an app,
|
|
||||||
// the touch mode somehow is not changed to false by the Android framework.
|
|
||||||
// The subsequent key events (e.g. DPAD_LEFT, DPAD_RIGHT) can only be dispatched to
|
|
||||||
// focused views, while focus can only be requested in
|
|
||||||
// {@link View#requestFocusNoSearch(int, Rect)} when touch mode is false. To note,
|
|
||||||
// here we launch overview with live tile.
|
|
||||||
mActivity.getRootView().getViewRootImpl().touchModeChanged(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user