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

Commit d6644d60 authored by John Hoford's avatar John Hoford Committed by Android Git Automerger
Browse files

am c0c6f058: Merge "fix Gallery crash using crop" into gb-ub-photos-carlsbad

* commit 'c0c6f058':
  fix Gallery crash using crop
parents 164de4d8 c0c6f058
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -265,6 +265,7 @@ public class ImageCrop extends ImageShow {
        mImageBounds.set(0, 0, bitmap.getWidth(), bitmap.getHeight());
        // If display matrix doesn't exist, create it and its dependencies
        if (mDisplayCropMatrix == null || mDisplayMatrix == null || mDisplayMatrixInverse == null) {
            mCropObj.unsetAspectRatio();
            mDisplayMatrix = GeometryMathUtils.getFullGeometryToScreenMatrix(mGeometry,
                    bitmap.getWidth(), bitmap.getHeight(), canvas.getWidth(), canvas.getHeight());
            float straighten = mGeometry.straighten;