@ -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
@ -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"
}
@ -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);