Loading services/core/java/com/android/server/input/InputManagerService.java +6 −3 Original line number Diff line number Diff line Loading @@ -2451,6 +2451,12 @@ public class InputManagerService extends IInputManager.Stub // Native callback. @SuppressWarnings("unused") private void notifyInputDevicesChanged(InputDevice[] inputDevices) { mHandler.post(() -> { // Input device change can possibly change configuration, so notify window manager to // update its configuration. // Shift to main thread and release InputReader thread. mWindowManagerCallbacks.notifyConfigurationChanged(); }); synchronized (mInputDevicesLock) { if (!mInputDevicesChangedPending) { mInputDevicesChangedPending = true; Loading @@ -2460,9 +2466,6 @@ public class InputManagerService extends IInputManager.Stub mInputDevices = inputDevices; } // Input device change can possibly change configuration, so notify window manager to update // its configuration. mWindowManagerCallbacks.notifyConfigurationChanged(); } // Native callback. Loading Loading
services/core/java/com/android/server/input/InputManagerService.java +6 −3 Original line number Diff line number Diff line Loading @@ -2451,6 +2451,12 @@ public class InputManagerService extends IInputManager.Stub // Native callback. @SuppressWarnings("unused") private void notifyInputDevicesChanged(InputDevice[] inputDevices) { mHandler.post(() -> { // Input device change can possibly change configuration, so notify window manager to // update its configuration. // Shift to main thread and release InputReader thread. mWindowManagerCallbacks.notifyConfigurationChanged(); }); synchronized (mInputDevicesLock) { if (!mInputDevicesChangedPending) { mInputDevicesChangedPending = true; Loading @@ -2460,9 +2466,6 @@ public class InputManagerService extends IInputManager.Stub mInputDevices = inputDevices; } // Input device change can possibly change configuration, so notify window manager to update // its configuration. mWindowManagerCallbacks.notifyConfigurationChanged(); } // Native callback. Loading