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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user