Loading services/inputflinger/InputReaderBase.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -114,8 +114,10 @@ std::optional<DisplayViewport> InputReaderConfiguration::getDisplayViewportByTyp std::optional<DisplayViewport> result = std::nullopt; for (const DisplayViewport& currentViewport : mDisplays) { // Return the first match if (currentViewport.type == type && !result) { if (currentViewport.type == type) { if (!result) { result = std::make_optional(currentViewport); } count++; } } Loading Loading
services/inputflinger/InputReaderBase.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -114,8 +114,10 @@ std::optional<DisplayViewport> InputReaderConfiguration::getDisplayViewportByTyp std::optional<DisplayViewport> result = std::nullopt; for (const DisplayViewport& currentViewport : mDisplays) { // Return the first match if (currentViewport.type == type && !result) { if (currentViewport.type == type) { if (!result) { result = std::make_optional(currentViewport); } count++; } } Loading