Merge "IMS: Intialize static association map before initializing native service" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fb2c1de5b7
@@ -391,11 +391,14 @@ public class InputManagerService extends IInputManager.Stub
|
|||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
InputManagerService(Injector injector) {
|
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();
|
mContext = injector.getContext();
|
||||||
mHandler = new InputManagerHandler(injector.getLooper());
|
mHandler = new InputManagerHandler(injector.getLooper());
|
||||||
mNative = injector.getNativeService(this);
|
mNative = injector.getNativeService(this);
|
||||||
|
|
||||||
mStaticAssociations = loadStaticInputPortAssociations();
|
|
||||||
mUseDevInputEventForAudioJack =
|
mUseDevInputEventForAudioJack =
|
||||||
mContext.getResources().getBoolean(R.bool.config_useDevInputEventForAudioJack);
|
mContext.getResources().getBoolean(R.bool.config_useDevInputEventForAudioJack);
|
||||||
Slog.i(TAG, "Initializing input manager, mUseDevInputEventForAudioJack="
|
Slog.i(TAG, "Initializing input manager, mUseDevInputEventForAudioJack="
|
||||||
|
|||||||
Reference in New Issue
Block a user