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
This commit is contained in:
Robert Carr
2022-04-04 20:50:43 -07:00
parent a7b858cd2d
commit 51b190e9de

View File

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