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

Commit 1b1f14eb authored by Yin-Chia Yeh's avatar Yin-Chia Yeh
Browse files

Camera: fix getKeys impl for vendor keys

Test: partner testing
Bug: 137856586
Change-Id: Ie36db4f76e8b3d500aeea88d15e4e3295cc3d481
parent d0daec02
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);
                }

            }
        }