From 51b190e9de7f78e491aa7d9b13d1fbc484b864ee Mon Sep 17 00:00:00 2001 From: Robert Carr Date: Mon, 4 Apr 2022 20:50:43 -0700 Subject: [PATCH] InputMonitor: Update name We've never done this before, but a bug complained about the name not updating in the dumps and it's easy enough to fix. Bug: 208957354 Test: Existing tests pass Change-Id: I3312dfbf23b4583ac90a1975d9af22bc8214b5c7 --- services/core/java/com/android/server/wm/InputMonitor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/core/java/com/android/server/wm/InputMonitor.java b/services/core/java/com/android/server/wm/InputMonitor.java index 00f7e6362be93..65062e576d550 100644 --- a/services/core/java/com/android/server/wm/InputMonitor.java +++ b/services/core/java/com/android/server/wm/InputMonitor.java @@ -249,6 +249,8 @@ final class InputMonitor { inputWindowHandle.setPaused(w.mActivityRecord != null && w.mActivityRecord.paused); inputWindowHandle.setWindowToken(w.mClient); + inputWindowHandle.setName(w.getName()); + // Update layout params flags to force the window to be not touch modal. We do this to // restrict the window's touchable region to the task even if it requests touches outside // its window bounds. An example is a dialog in primary split should get touches outside its