Merge "fix a weird use of Vector::appendVector()"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e230189444
@@ -3154,11 +3154,9 @@ void InputDispatcher::setInputWindows(const Vector<InputWindow>& inputWindows) {
|
||||
mLastHoverWindow = NULL;
|
||||
}
|
||||
|
||||
mWindows.clear();
|
||||
|
||||
// Loop over new windows and rebuild the necessary window pointers for
|
||||
// tracking focus and touch.
|
||||
mWindows.appendVector(inputWindows);
|
||||
mWindows = inputWindows;
|
||||
|
||||
size_t numWindows = mWindows.size();
|
||||
for (size_t i = 0; i < numWindows; i++) {
|
||||
@@ -4560,8 +4558,7 @@ void InputDispatcher::TouchState::copyFrom(const TouchState& other) {
|
||||
split = other.split;
|
||||
deviceId = other.deviceId;
|
||||
source = other.source;
|
||||
windows.clear();
|
||||
windows.appendVector(other.windows);
|
||||
windows = other.windows;
|
||||
}
|
||||
|
||||
void InputDispatcher::TouchState::addOrUpdateWindow(const InputWindow* window,
|
||||
|
||||
Reference in New Issue
Block a user