Skip to content

Commit

Permalink
ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Canato committed Aug 16, 2021
1 parent e71e458 commit 53a987a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class BitmapCroppingWorkerJob(
resizedBitmap.recycle()
onPostExecute(
Result(
newUri, //saveUri,
newUri, // saveUri,
bitmapSampled.sampleSize
)
)
Expand Down
6 changes: 2 additions & 4 deletions cropper/src/main/java/com/canhub/cropper/BitmapUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ import android.net.Uri
import android.os.Environment
import android.util.Log
import android.util.Pair
import androidx.core.content.FileProvider
import androidx.exifinterface.media.ExifInterface
import com.canhub.cropper.CropImageView.RequestSizeOptions
import com.canhub.cropper.common.CommonValues
import com.canhub.cropper.common.CommonVersionCheck.isAtLeastQ29
import com.canhub.cropper.utils.getUriForFile
import java.io.Closeable
Expand Down Expand Up @@ -720,8 +718,8 @@ internal object BitmapUtils {
options.inSampleSize = (
sampleMulti
* calculateInSampleSizeByReqestedSize(
rect.width(), rect.height(), reqWidth, reqHeight
)
rect.width(), rect.height(), reqWidth, reqHeight
)
)
stream = context.contentResolver.openInputStream(uri)
decoder = BitmapRegionDecoder.newInstance(stream, false)
Expand Down
5 changes: 0 additions & 5 deletions cropper/src/main/java/com/canhub/cropper/CropImageActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ package com.canhub.cropper
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.net.Uri
import android.os.Bundle
import android.os.Environment
import android.util.Log
import android.view.Menu
import android.view.MenuItem
Expand All @@ -21,9 +19,6 @@ import com.canhub.cropper.CropImageView.OnCropImageCompleteListener
import com.canhub.cropper.CropImageView.OnSetImageUriCompleteListener
import com.canhub.cropper.common.CommonVersionCheck
import com.canhub.cropper.databinding.CropImageActivityBinding
import com.canhub.cropper.utils.getUriForFile
import java.io.File
import java.io.IOException

/**
* Built-in activity for image cropping.<br></br>
Expand Down

0 comments on commit 53a987a

Please sign in to comment.