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:
Prabir Pradhan
2023-05-22 18:56:48 +00:00
parent f91a331f1d
commit be7d2d1de2

View File

@@ -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;