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

Commit 0c53673b authored by Hiroki Sato's avatar Hiroki Sato
Browse files

Small clanup in InputManagerService

* Remove unused member variables
* Add a final keyword that is actually final.

Bug: None
Test: Build
Flag: NONE refactor
Change-Id: Iea9156bc0e7bc9a4f7cf47099881977d097a9e18
parent 1468a6f9
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
@@ -3215,7 +3211,6 @@ public class InputManagerService extends IInputManager.Stub
    }

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