From f42d307c1312ea63d7d73d00b5f3bc5d3cdee4a8 Mon Sep 17 00:00:00 2001 From: Jeroen Weener Date: Wed, 12 Apr 2023 12:16:51 +0200 Subject: [PATCH] Format `ImagePickerDelegate.java` --- .../io/flutter/plugins/imagepicker/ImagePickerDelegate.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 4bb8e8b6fe25..6aa1181ce908 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); }