Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ab71435 authored by Antonio Kantek's avatar Antonio Kantek
Browse files

Delete obsolete TODO in setInTouchMode

Bug: 198499018
Test: m (built)
Change-Id: If024ce661ee2a3d12d71261ad68406328322ec92
parent 370158f9
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -5012,8 +5012,6 @@ bool InputDispatcher::setInTouchMode(bool inTouchMode, int32_t pid, int32_t uid,
                         ? "not set"
                         ? "not set"
                         : std::to_string(mTouchModePerDisplay[displayId]).c_str());
                         : std::to_string(mTouchModePerDisplay[displayId]).c_str());


        // TODO(b/198499018): Ensure that WM can guarantee that touch mode is properly set when
        // display is created.
        auto touchModeIt = mTouchModePerDisplay.find(displayId);
        auto touchModeIt = mTouchModePerDisplay.find(displayId);
        if (touchModeIt != mTouchModePerDisplay.end() && touchModeIt->second == inTouchMode) {
        if (touchModeIt != mTouchModePerDisplay.end() && touchModeIt->second == inTouchMode) {
            return false;
            return false;