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

Commit 9bf58bf2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Small clanup in InputManagerService" into main

parents e19e4b8d 0c53673b
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -193,15 +193,11 @@ public class InputManagerService extends IInputManager.Stub
    private static final int MSG_SYSTEM_READY = 5;

    private static final int DEFAULT_VIBRATION_MAGNITUDE = 192;
    private static final AdditionalDisplayInputProperties
            DEFAULT_ADDITIONAL_DISPLAY_INPUT_PROPERTIES = new AdditionalDisplayInputProperties();

    private final NativeInputManagerService mNative;

    private final Context mContext;
    private final InputManagerHandler mHandler;
    @UserIdInt
    private int mCurrentUserId = UserHandle.USER_SYSTEM;
    private DisplayManagerInternal mDisplayManagerInternal;

    private WindowManagerInternal mWindowManagerInternal;
@@ -289,7 +285,7 @@ public class InputManagerService extends IInputManager.Stub

    final Object mKeyEventActivityLock = new Object();
    @GuardedBy("mKeyEventActivityLock")
    private List<IKeyEventActivityListener> mKeyEventActivityListenersToNotify =
    private final List<IKeyEventActivityListener> mKeyEventActivityListenersToNotify =
            new ArrayList<>();

    // Rate limit for key event activity detection. Prevent the listener from being notified
@@ -3240,7 +3236,6 @@ public class InputManagerService extends IInputManager.Stub
    }

    private void handleCurrentUserChanged(@UserIdInt int userId) {
        mCurrentUserId = userId;
        mKeyGestureController.setCurrentUserId(userId);
    }