Register and update input settings after boot
Some changes input settings have dependencies on other parts of the system. For example, the show_key_presses setting adds a window to WM when enabled. To account for this, only register and update input settings after the system is running. Bug: 283782679 Test: manual Change-Id: I622ffdc762537a277f90293eaa1b17b17eae68a2
This commit is contained in:
@@ -500,8 +500,6 @@ public class InputManagerService extends IInputManager.Stub
|
||||
|
||||
// Add ourselves to the Watchdog monitors.
|
||||
Watchdog.getInstance().addMonitor(this);
|
||||
|
||||
mSettingsObserver.registerAndUpdate();
|
||||
}
|
||||
|
||||
// TODO(BT) Pass in parameter for bluetooth system
|
||||
@@ -512,6 +510,8 @@ public class InputManagerService extends IInputManager.Stub
|
||||
|
||||
mDisplayManagerInternal = LocalServices.getService(DisplayManagerInternal.class);
|
||||
|
||||
mSettingsObserver.registerAndUpdate();
|
||||
|
||||
synchronized (mLidSwitchLock) {
|
||||
mSystemReady = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user