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

Commit db1180a6 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Synchronize InputManagerGlobal static instance correctly

The static instance sInstance is synchonized by
InputManagerGlobal.class, not InputManager.class.

Bug: 290274722
Test: None
Change-Id: Ifb91cf9ab2cb40fa3ecffadd3308da930a505730
parent 19755e36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ public final class InputManagerGlobal {
     * @return The input manager instance.
     */
    public static InputManagerGlobal resetInstance(IInputManager inputManagerService) {
        synchronized (InputManager.class) {
        synchronized (InputManagerGlobal.class) {
            sInstance = new InputManagerGlobal(inputManagerService);
            return sInstance;
        }