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

Commit 626240f7 authored by Winson Chung's avatar Winson Chung
Browse files

Initialize the map before usage

Test: Device boots
Bug: 146674873

Change-Id: I65756247e49b533b669c709c063145ef9a902c50
parent 30b1ff1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -317,6 +317,7 @@ public class InputManagerService extends IInputManager.Stub
        this.mContext = context;
        this.mHandler = new InputManagerHandler(DisplayThread.get().getLooper());

        mStaticAssociations = loadStaticInputPortAssociations();
        mUseDevInputEventForAudioJack =
                context.getResources().getBoolean(R.bool.config_useDevInputEventForAudioJack);
        Slog.i(TAG, "Initializing input manager, mUseDevInputEventForAudioJack="
@@ -328,7 +329,6 @@ public class InputManagerService extends IInputManager.Stub
        mDoubleTouchGestureEnableFile = TextUtils.isEmpty(doubleTouchGestureEnablePath) ? null :
            new File(doubleTouchGestureEnablePath);

        mStaticAssociations = loadStaticInputPortAssociations();
        LocalServices.addService(InputManagerInternal.class, new LocalService());
    }