summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2023-05-22 18:56:48 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2023-05-22 19:01:28 +0000
commitbe7d2d1de28ae61bdc04e6a1667760f32f3bd55e (patch)
tree75be1d9fc88d76aceccb9b76a3ac38062b12c64c
parentf91a331f1d5d4d0c9476d1e86247133e221c882d (diff)
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
-rw-r--r--services/core/java/com/android/server/input/InputManagerService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/input/InputManagerService.java b/services/core/java/com/android/server/input/InputManagerService.java
index 662591e3d264..4cb22dbcf308 100644
--- a/services/core/java/com/android/server/input/InputManagerService.java
+++ b/services/core/java/com/android/server/input/InputManagerService.java
@@ -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;