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

Commit d6a93e93 authored by Prabir Pradhan's avatar Prabir Pradhan Committed by Android (Google) Code Review
Browse files

Merge "InputFilter.cpp: Fix unnecessary copying of InputDeviceInfo" into main

parents 2b170238 ace3811a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ InputFilter::InputFilter(InputListenerInterface& listener, IInputFlingerRust& ru
void InputFilter::notifyInputDevicesChanged(const NotifyInputDevicesChangedArgs& args) {
    mDeviceInfos.clear();
    mDeviceInfos.reserve(args.inputDeviceInfos.size());
    for (auto info : args.inputDeviceInfos) {
    for (const auto& info : args.inputDeviceInfos) {
        AidlDeviceInfo& aidlInfo = mDeviceInfos.emplace_back();
        aidlInfo.deviceId = info.getId();
        aidlInfo.external = info.isExternal();