Merge "Remove the per display window handles when the display is removed." into sc-dev am: 11b487709d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14633071 Change-Id: I0d36ef0cc243406f4e9689cfe741565a9979f9be
This commit is contained in:
@@ -999,6 +999,7 @@ void NativeInputManager::displayRemoved(JNIEnv* env, int32_t displayId) {
|
||||
// Set an empty list to remove all handles from the specific display.
|
||||
std::vector<sp<InputWindowHandle>> windowHandles;
|
||||
mInputManager->getDispatcher()->setInputWindows({{displayId, windowHandles}});
|
||||
mInputManager->getDispatcher()->setFocusedApplication(displayId, nullptr);
|
||||
}
|
||||
|
||||
void NativeInputManager::setFocusedApplication(JNIEnv* env, int32_t displayId,
|
||||
|
||||
Reference in New Issue
Block a user