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

Commit ed904d34 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 am: a24ea95d

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

Change-Id: I35a953625cedf52fa01c80e5859805dea5430117
parents a44b418e a24ea95d
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,