Use client-side version of inTouchMode

Was bindering into WM service pretty often due to this which was
causing some jank

Bug: 72236832
Test: Related touchmode/focus CTS tests still pass
Change-Id: Ia0f89429b67464beea07c702d8fe2d8b813f8d38
This commit is contained in:
Evan Rosky
2018-04-03 13:21:55 -07:00
parent 21ba6eff91
commit 2888404df8

View File

@@ -3719,7 +3719,7 @@ public final class ViewRootImpl implements ViewParent,
checkThread();
if (mView != null) {
if (!mView.hasFocus()) {
if (sAlwaysAssignFocus || !isInTouchMode()) {
if (sAlwaysAssignFocus || !mAttachInfo.mInTouchMode) {
v.requestFocus();
}
} else {