Merge "Remove the per display window handles when the display is removed." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
11b487709d
@@ -999,6 +999,7 @@ void NativeInputManager::displayRemoved(JNIEnv* env, int32_t displayId) {
|
|||||||
// Set an empty list to remove all handles from the specific display.
|
// Set an empty list to remove all handles from the specific display.
|
||||||
std::vector<sp<InputWindowHandle>> windowHandles;
|
std::vector<sp<InputWindowHandle>> windowHandles;
|
||||||
mInputManager->getDispatcher()->setInputWindows({{displayId, windowHandles}});
|
mInputManager->getDispatcher()->setInputWindows({{displayId, windowHandles}});
|
||||||
|
mInputManager->getDispatcher()->setFocusedApplication(displayId, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeInputManager::setFocusedApplication(JNIEnv* env, int32_t displayId,
|
void NativeInputManager::setFocusedApplication(JNIEnv* env, int32_t displayId,
|
||||||
|
|||||||
Reference in New Issue
Block a user