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

Commit def700be authored by lilinnan's avatar lilinnan Committed by Linnan Li
Browse files

Fix spot not disappear in some case



Bug: When a pointer device exist and it not has event,turn on the show touches in settings, use finger press screen not leave, use command "adb shell settings put system show_touches 0" to turn off show touches, the spot will stay on screen.

Fix Method: call clearSpots method in PointerController when show touches turn off.

Signed-off-by: default avatarlilinnan <lilinnan@xiaomi.corp-partner.google.com>
Change-Id: I085b6aeb43771607b4265384f76e17d48beff00c
parent b69a669d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -813,6 +813,10 @@ void TouchInputMapper::configureSurface(nsecs_t when, bool* outResetNeeded) {
            mPointerController->fade(PointerControllerInterface::Transition::IMMEDIATE);
        }
    } else {
        if (mPointerController != nullptr && mDeviceMode == DeviceMode::DIRECT &&
            !mConfig.showTouches) {
            mPointerController->clearSpots();
        }
        mPointerController.reset();
    }