Merge "IMS: Intialize static association map before initializing native service" into tm-dev am: fb2c1de5b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18185202 Change-Id: Id577a9e84998e8d80077a5492abf2754bbacc187 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -391,11 +391,14 @@ public class InputManagerService extends IInputManager.Stub
|
||||
|
||||
@VisibleForTesting
|
||||
InputManagerService(Injector injector) {
|
||||
// The static association map is accessed by both java and native code, so it must be
|
||||
// initialized before initializing the native service.
|
||||
mStaticAssociations = loadStaticInputPortAssociations();
|
||||
|
||||
mContext = injector.getContext();
|
||||
mHandler = new InputManagerHandler(injector.getLooper());
|
||||
mNative = injector.getNativeService(this);
|
||||
|
||||
mStaticAssociations = loadStaticInputPortAssociations();
|
||||
mUseDevInputEventForAudioJack =
|
||||
mContext.getResources().getBoolean(R.bool.config_useDevInputEventForAudioJack);
|
||||
Slog.i(TAG, "Initializing input manager, mUseDevInputEventForAudioJack="
|
||||
|
||||
Reference in New Issue
Block a user