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

Commit c874bf7c authored by Vishnu Nair's avatar Vishnu Nair Committed by Automerger Merge Worker
Browse files

Merge "FocusResolver: Clean up focus requests and results when a display is...

Merge "FocusResolver: Clean up focus requests and results when a display is removed" into sc-dev am: ed9701bb

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

Change-Id: I860407edea234aa9a1de68b4d4b434e023991632
parents 7c103a89 ed9701bb
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -997,10 +997,7 @@ void NativeInputManager::getDispatcherConfiguration(InputDispatcherConfiguration
}

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);
    mInputManager->getDispatcher()->displayRemoved(displayId);
}

void NativeInputManager::setFocusedApplication(JNIEnv* env, int32_t displayId,