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

Commit 1a73b38d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "WallpaperCropper: Fix crash when set .gif as wallpaper"

parents d4f4fd03 7d815c49
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -634,6 +634,14 @@ public class WallpaperCropActivity extends Activity {
                        mCropBounds.bottom /= scaleDownSampleSize;
                        mCropBounds.right /= scaleDownSampleSize;
                        mCropBounds.roundOut(roundedTrueCrop);
                        if (roundedTrueCrop.right > mCropBounds.right) {
                            roundedTrueCrop.set(roundedTrueCrop.left, roundedTrueCrop.top,
                                    (int) mCropBounds.right, roundedTrueCrop.bottom);
                        }
                        if (roundedTrueCrop.bottom > mCropBounds.bottom) {
                            roundedTrueCrop.set(roundedTrueCrop.left, roundedTrueCrop.top,
                                    roundedTrueCrop.right, (int) mCropBounds.bottom);
                        }

                        crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left,
                                roundedTrueCrop.top, roundedTrueCrop.width(),