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

Commit 8251b2de authored by Yin-Chia Yeh's avatar Yin-Chia Yeh Committed by android-build-merger
Browse files

Camera: fix getKeys impl for vendor keys

am: 1b1f14eb

Change-Id: Id8fd308714ea7bd53f088a951250e74b0c24d489
parents 3394e4bd 1b1f14eb
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -206,10 +206,16 @@ public abstract class CameraMetadata<TKey> {
                    continue;
                }

                if (filterTags == null || Arrays.binarySearch(filterTags,
                        CameraMetadataNative.getTag(keyName, vendorId)) >= 0) {

                if (filterTags != null && Arrays.binarySearch(filterTags,
                        CameraMetadataNative.getTag(keyName, vendorId)) < 0) {
                    // ignore vendor keys not in filterTags
                    continue;
                }
                if (instance == null || instance.getProtected(k) != null)  {
                    keyList.add(k);
                }

            }
        }