Skip to content

Commit

Permalink
Applied ktlint
Browse files Browse the repository at this point in the history
Applied ktlint code formatting
  • Loading branch information
Dhaval2404 committed Jan 8, 2020
1 parent 8284136 commit 5ee8638
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ open class ImagePicker {
*
* If null, Image will be stored in {@see [Environment.DIRECTORY_DCIM]}
*/
private var saveDir:String? = null
private var saveDir: String? = null

/**
* Call this while picking image for fragment.
Expand Down Expand Up @@ -202,7 +202,7 @@ open class ImagePicker {
return this
}

fun saveDir(path:String): Builder {
fun saveDir(path: String): Builder {
this.saveDir = path
return this
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class CameraProvider(activity: ImagePickerActivity) : BaseProvider(activity) {
/**
* Camera image will be stored in below file directory
*/
private var mFileDir:File? = null
private var mFileDir: File? = null

init {
val bundle = activity.intent.extras!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CompressionProvider(activity: ImagePickerActivity) : BaseProvider(activity
private val mMaxFileSize: Long

private var mOriginalFile: File? = null
private var mFileDir:File? = null
private var mFileDir: File? = null

init {
val bundle = activity.intent.extras!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class CropProvider(activity: ImagePickerActivity) : BaseProvider(activity) {
private val mCropAspectX: Float
private val mCropAspectY: Float
private var mCropImageFile: File? = null
private var mFileDir:File? = null
private var mFileDir: File? = null

init {
val bundle = activity.intent.extras!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ class MainActivity : AppCompatActivity() {
// Image size will be less than 1024 KB
.compress(1024)
.saveDir(Environment.getExternalStorageDirectory())
//.saveDir(Environment.getExternalStorageDirectory().absolutePath+File.separator+"ImagePicker")
//.saveDir(getExternalFilesDir(null)!!)
// .saveDir(Environment.getExternalStorageDirectory().absolutePath+File.separator+"ImagePicker")
// .saveDir(getExternalFilesDir(null)!!)
.start(CAMERA_IMAGE_REQ_CODE)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.github.dhaval2404.imagepicker.sample.util
import android.graphics.BitmapFactory
import java.io.File
import java.text.SimpleDateFormat
import java.util.*
import java.util.Locale

/**
* File Utility
Expand Down

0 comments on commit 5ee8638

Please sign in to comment.