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
Merged-In: I588fd3b331380ff20762c24762e997d4a878cc44
(cherry picked from commit 8649a91686)
This commit is contained in:
Emilian Peev
2019-12-16 13:57:12 -08:00
parent a8a1e592aa
commit e6818d5f6c

View File

@@ -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;
}
}