Merge remote-tracking branch 'lineageos/cm-13.0' into replicant-6.0
This commit is contained in:
commit
f2248acad2
@ -1222,15 +1222,8 @@ int32_t InputDispatcher::findTouchedWindowTargetsLocked(nsecs_t currentTime,
|
|||||||
|
|
||||||
if (maskedAction == AMOTION_EVENT_ACTION_DOWN
|
if (maskedAction == AMOTION_EVENT_ACTION_DOWN
|
||||||
&& (flags & InputWindowInfo::FLAG_WATCH_OUTSIDE_TOUCH)) {
|
&& (flags & InputWindowInfo::FLAG_WATCH_OUTSIDE_TOUCH)) {
|
||||||
int32_t outsideTargetFlags = InputTarget::FLAG_DISPATCH_AS_OUTSIDE;
|
|
||||||
if (isWindowObscuredAtPointLocked(windowHandle, x, y)) {
|
|
||||||
outsideTargetFlags |= InputTarget::FLAG_WINDOW_IS_OBSCURED;
|
|
||||||
} else if (isWindowObscuredLocked(windowHandle)) {
|
|
||||||
outsideTargetFlags |= InputTarget::FLAG_WINDOW_IS_PARTIALLY_OBSCURED;
|
|
||||||
}
|
|
||||||
|
|
||||||
mTempTouchState.addOrUpdateWindow(
|
mTempTouchState.addOrUpdateWindow(
|
||||||
windowHandle, outsideTargetFlags, BitSet32(0));
|
windowHandle, InputTarget::FLAG_DISPATCH_AS_OUTSIDE, BitSet32(0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user