From c1de41c8645a83b6604f436b15d38eca33663e95 Mon Sep 17 00:00:00 2001 From: Amadeu Cavalcante Date: Tue, 20 Mar 2018 20:08:18 -0300 Subject: [PATCH] Fixed mediaAction wrong check on PreviewActivity --- README.md | 2 +- build.gradle | 2 +- .../com/github/florent37/camerafragment/PreviewActivity.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4648d1e..a101d82 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ CameraFragment comes with some default views In your module [![Download](https://api.bintray.com/packages/florent37/maven/CameraFragment/images/download.svg)](https://bintray.com/florent37/maven/CameraFragment/_latestVersion) ```groovy -compile 'com.github.florent37:camerafragment:1.0.8' +compile 'com.github.florent37:camerafragment:1.0.9' ``` # Community diff --git a/build.gradle b/build.gradle index 3b4ec7f..e351cd7 100644 --- a/build.gradle +++ b/build.gradle @@ -22,6 +22,6 @@ ext { sdk = 25 buildTools = "25.0.0" //keep 25.0.0 for Continuous Integration minSdk = 10 - libraryVersion = "1.0.8" + libraryVersion = "1.0.9" supportVersion = "25.0.0" } diff --git a/camerafragment/src/main/java/com/github/florent37/camerafragment/PreviewActivity.java b/camerafragment/src/main/java/com/github/florent37/camerafragment/PreviewActivity.java index fd0deac..2d62ac8 100644 --- a/camerafragment/src/main/java/com/github/florent37/camerafragment/PreviewActivity.java +++ b/camerafragment/src/main/java/com/github/florent37/camerafragment/PreviewActivity.java @@ -145,9 +145,9 @@ public class PreviewActivity extends AppCompatActivity implements View.OnClickLi mediaAction = args.getInt(MEDIA_ACTION_ARG); previewFilePath = args.getString(FILE_PATH_ARG); - if (mediaAction == Configuration.MEDIA_ACTION_VIDEO) { + if (mediaAction == MediaAction.ACTION_VIDEO) { displayVideo(savedInstanceState); - } else if (mediaAction == Configuration.MEDIA_ACTION_PHOTO) { + } else if (mediaAction == MediaAction.ACTION_PHOTO) { displayImage(); } else { String mimeType = Utils.getMimeType(previewFilePath);