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

This commit is contained in:
Android Build Merger (Role)
2019-08-06 09:18:41 +00:00
committed by Android (Google) Code Review

View File

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