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

Commit d1e61776 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Camera: fix getKeys impl for vendor keys am: 1b1f14eb" into qt-qpr1-dev-plus-aosp

parents c63f5346 8251b2de
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);
                }

            }
        }