Skip to content
Snippets Groups Projects
Commit d904605b authored by Jag Saund's avatar Jag Saund Committed by Android (Google) Code Review
Browse files

Merge "Camera Extensions - Disable Synthetic Keys for Get" into main

parents a8177574 e37fbfec
No related branches found
No related tags found
No related merge requests found
......@@ -874,8 +874,11 @@ public final class CameraExtensionCharacteristics {
Class<CameraCharacteristics.Key<?>> keyTyped =
(Class<CameraCharacteristics.Key<?>>) key;
// Do not include synthetic keys. Including synthetic keys leads to undefined
// behavior. This causes inclusion of capabilities that may not be supported in
// camera extensions.
ret.addAll(chars.getAvailableKeyList(CameraCharacteristics.class, keyTyped, keys,
/*includeSynthetic*/ true));
/*includeSynthetic*/ false));
}
} catch (RemoteException e) {
Log.e(TAG, "Failed to query the extension for all available keys! Extension "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment