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

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
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 "