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

Commit 476bea84 authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Revert "Camera2: Temporarily remove surface size 0 check"

This reverts commit bdabb0f5.
Bug: 35027811
Test: Use camera from hangouts
parent 5d99e14c
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -259,6 +259,10 @@ public final class OutputConfiguration implements Parcelable {
            throw new IllegalArgumentException("Unknow surface source class type");
            throw new IllegalArgumentException("Unknow surface source class type");
        }
        }


        if (surfaceSize.getWidth() == 0 || surfaceSize.getHeight() == 0) {
            throw new IllegalArgumentException("Surface size needs to be non-zero");
        }

        mSurfaceGroupId = SURFACE_GROUP_ID_NONE;
        mSurfaceGroupId = SURFACE_GROUP_ID_NONE;
        mSurfaces = new ArrayList<Surface>();
        mSurfaces = new ArrayList<Surface>();
        mRotation = ROTATION_0;
        mRotation = ROTATION_0;