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

Commit 781ccd4b authored by Christine Franks's avatar Christine Franks
Browse files

Reset display input properties when removed

Bug: 227352703
Test: atest CtsHardwareTestCases:android.hardware.input.cts.tests.VirtualMouseTest --iterations 10
  and adb shell dumpsys input | grep mAdditionalDisplayInputProperties
  returns nothing

Change-Id: I4b8ca7f52079260eb9bf4cc8c69d88713087d6ac
parent f26444d7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1702,6 +1702,13 @@ public class InputManagerService extends IInputManager.Stub
            mPointerIconDisplayContext = null;
        }

        synchronized (mAdditionalDisplayInputPropertiesLock) {
            setPointerIconVisible(AdditionalDisplayInputProperties.DEFAULT_POINTER_ICON_VISIBLE,
                    displayId);
            setPointerAcceleration(AdditionalDisplayInputProperties.DEFAULT_POINTER_ACCELERATION,
                    displayId);
        }

        mNative.displayRemoved(displayId);
    }