summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputManager.cpp
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2020-03-26 01:15:40 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-03-26 01:15:40 +0000
commitf4f7283fc673534ab3a9807f936edc7888fe4004 (patch)
tree44395c74c5b197ef6daa07640bf6b456ff0543c5 /services/inputflinger/InputManager.cpp
parentd6e0ff545abd08fec496f5f46f90355adce9574d (diff)
parent2d112c5f625d09bb703b8909289d11f02ee44398 (diff)
Merge "Fix input infos are inconsistent between WMS and InputFlinger (2/2)" into rvc-dev
Diffstat (limited to 'services/inputflinger/InputManager.cpp')
-rw-r--r--services/inputflinger/InputManager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp
index fc771a2c58..e68946d734 100644
--- a/services/inputflinger/InputManager.cpp
+++ b/services/inputflinger/InputManager.cpp
@@ -111,8 +111,10 @@ void InputManager::setInputWindows(const std::vector<InputWindowInfo>& infos,
handlesPerDisplay.emplace(info.displayId, std::vector<sp<InputWindowHandle>>());
handlesPerDisplay[info.displayId].push_back(new BinderWindowHandle(info));
}
- for (auto const& i : handlesPerDisplay) {
- mDispatcher->setInputWindows(i.second, i.first, setInputWindowsListener);
+ mDispatcher->setInputWindows(handlesPerDisplay);
+
+ if (setInputWindowsListener) {
+ setInputWindowsListener->onSetInputWindowsFinished();
}
}