Loading packages/WallpaperCropper/src/com/android/wallpapercropper/WallpaperCropActivity.java +8 −0 Original line number Diff line number Diff line Loading @@ -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(), Loading Loading
packages/WallpaperCropper/src/com/android/wallpapercropper/WallpaperCropActivity.java +8 −0 Original line number Diff line number Diff line Loading @@ -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(), Loading