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

Commit 8649a916 authored by Emilian Peev's avatar Emilian Peev
Browse files

Camera: Fix typo when comparing display size height

Call "getHeight()" instead of "getWidth()" when
comparing against preview size height.

Bug: 146364316
Test: Camera CTS
Change-Id: I588fd3b331380ff20762c24762e997d4a878cc44
parent 79dc7ed6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1163,7 +1163,7 @@ public final class MandatoryStreamCombination {
            if (orderedPreviewSizes != null) {
                for (Size size : orderedPreviewSizes) {
                    if ((mDisplaySize.getWidth() >= size.getWidth()) &&
                            (mDisplaySize.getWidth() >= size.getHeight())) {
                            (mDisplaySize.getHeight() >= size.getHeight())) {
                        return size;
                    }
                }