Merge "FocusResolver: Clean up focus requests and results when a display is removed" into sc-dev
This commit is contained in:
@@ -997,10 +997,7 @@ void NativeInputManager::getDispatcherConfiguration(InputDispatcherConfiguration
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NativeInputManager::displayRemoved(JNIEnv* env, int32_t displayId) {
|
void NativeInputManager::displayRemoved(JNIEnv* env, int32_t displayId) {
|
||||||
// Set an empty list to remove all handles from the specific display.
|
mInputManager->getDispatcher()->displayRemoved(displayId);
|
||||||
std::vector<sp<InputWindowHandle>> 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