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

Commit 0fde6be4 authored by Emilian Peev's avatar Emilian Peev
Browse files

Camera: Always return 'null' for unsupported formats

According to the API documentation, output size queries must
return 'null' in case the respective format is not supported.

Bug: 132594990
Test: Camera CTS
Change-Id: I832efe73dae8753baa635b359a68062f2ef63476
parent 9a086d9f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1507,8 +1507,7 @@ public final class StreamConfigurationMap {
                            dataspace != HAL_DATASPACE_DYNAMIC_DEPTH &&
                            dataspace != HAL_DATASPACE_HEIF) &&
                 mAllOutputFormats.get(format) == 0)) {
            // Only throw if this is really not supported at all
            throw new IllegalArgumentException("format not available");
            return null;
        }

        Size[] sizes = new Size[sizesCount];