Fix bug in split touches.

Change-Id: I808c2201a06938f82817058059f4ddcc9b1a9ae2
This commit is contained in:
Jeff Brown
2010-09-28 13:24:41 -07:00
parent 6d028dd2f1
commit aeec2bf66a

View File

@@ -1070,7 +1070,8 @@ int32_t InputDispatcher::findTouchedWindowTargetsLocked(nsecs_t currentTime,
}
// Figure out whether splitting will be allowed for this window.
if (newTouchedWindow->layoutParamsFlags & InputWindow::FLAG_SPLIT_TOUCH) {
if (newTouchedWindow
&& (newTouchedWindow->layoutParamsFlags & InputWindow::FLAG_SPLIT_TOUCH)) {
// New window supports splitting.
isSplit = true;
} else if (isSplit) {