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

Commit d74034ee authored by Emilian Peev's avatar Emilian Peev Committed by android-build-merger
Browse files

Merge "Camera: Always return 'null' for unsupported formats" into qt-dev

am: c7c17338

Change-Id: Iaef622183d1e9a4b6ac019cd84fb75321537cbec
parents 92bca383 c7c17338
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];