Stop removing raw status when device is disabled.
Having them there makes the following touch unregistered after user
doesn't lift their finger before turning off their primary display.
Bug: 177403144
Test: The following touch is registered.
Change-Id: I045ccff6378ff60d8f2080808dad5f7d0071c8af
diff --git a/services/inputflinger/reader/mapper/TouchInputMapper.cpp b/services/inputflinger/reader/mapper/TouchInputMapper.cpp
index b748bfe..8bf1a27 100644
--- a/services/inputflinger/reader/mapper/TouchInputMapper.cpp
+++ b/services/inputflinger/reader/mapper/TouchInputMapper.cpp
@@ -1453,8 +1453,6 @@
if (mDeviceMode == DeviceMode::DISABLED) {
// Drop all input if the device is disabled.
cancelTouch(mCurrentRawState.when);
- mCurrentRawState.clear();
- mRawStatesPending.clear();
mCurrentCookedState.clear();
updateTouchSpots();
return;