diff --git a/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java b/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java index 6482daf1681c..75cdd64e289b 100644 --- a/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java +++ b/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java @@ -240,7 +240,7 @@ void saveStateBeforeResult() { } cache.saveType( - localImageOptions != null + localImageOptions != null ? ImagePickerCache.CacheType.IMAGE : ImagePickerCache.CacheType.VIDEO); if (localImageOptions != null) { @@ -344,8 +344,7 @@ private void launchTakeVideoWithCameraIntent() { } } - if (localVideoOptions != null - && localVideoOptions.getMaxDurationSeconds() != null) { + if (localVideoOptions != null && localVideoOptions.getMaxDurationSeconds() != null) { int maxSeconds = localVideoOptions.getMaxDurationSeconds().intValue(); intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, maxSeconds); }