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

Commit 62cf33f6 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

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

Change-Id: Iea3e8bd56f54076886da5b4ef416156cae50aaa8
parents 5bd04c19 11b48770
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line 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.
    // 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,