Skip to content
Snippets Groups Projects
Commit 7a37c2bf authored by John's avatar John
Browse files

Fix the build

parent c5f80c61
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -67,7 +67,7 @@ class AttachActivity : BaseActivity() {
 
@OnClick(R.id.button_take_photo)
fun onTakePhotoClicked() {
EasyImage.openCamera(this, 0)
EasyImage.openCameraForImage(this, 0)
}
 
@OnClick(R.id.button_choose_file)
Loading
Loading
@@ -98,7 +98,7 @@ class AttachActivity : BaseActivity() {
 
override fun onCanceled(source: EasyImage.ImageSource?, type: Int) {
//Cancel handling, you might wanna remove taken photo if it was canceled
if (source == EasyImage.ImageSource.CAMERA) {
if (source == EasyImage.ImageSource.CAMERA_IMAGE) {
val photoFile = EasyImage.lastlyTakenButCanceledPhoto(this@AttachActivity)
photoFile?.delete()
}
Loading
Loading
Loading
Loading
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment