Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68f9e330 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove the per display window handles when the display is removed."...

Merge "Remove the per display window handles when the display is removed." into sc-dev am: 11b48770 am: 62cf33f6

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14633071

Change-Id: I7077c6cde572bebcf763db5d33524aad1d9b7cef
parents 0ffb0db7 62cf33f6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,