Skip to content

Commit f573ca2

Browse files
committed
Format ImagePickerDelegate.java
1 parent dd6ea8f commit f573ca2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ void saveStateBeforeResult() {
240240
}
241241

242242
cache.saveType(
243-
localImageOptions != null
243+
localImageOptions != null
244244
? ImagePickerCache.CacheType.IMAGE
245245
: ImagePickerCache.CacheType.VIDEO);
246246
if (localImageOptions != null) {
@@ -344,8 +344,7 @@ private void launchTakeVideoWithCameraIntent() {
344344
}
345345
}
346346

347-
if (localVideoOptions != null
348-
&& localVideoOptions.getMaxDurationSeconds() != null) {
347+
if (localVideoOptions != null && localVideoOptions.getMaxDurationSeconds() != null) {
349348
int maxSeconds = localVideoOptions.getMaxDurationSeconds().intValue();
350349
intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, maxSeconds);
351350
}

0 commit comments

Comments
 (0)