Merge "Camera: fix getKeys impl for vendor keys am: 1b1f14ebff" into qt-qpr1-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
d1e6177672
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user