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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user