Skip to content

Commit

Permalink
Format ImagePickerDelegate.java
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenWeener committed Apr 28, 2023
1 parent 38e67c1 commit f42d307
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void saveStateBeforeResult() {
}

cache.saveType(
localImageOptions != null
localImageOptions != null
? ImagePickerCache.CacheType.IMAGE
: ImagePickerCache.CacheType.VIDEO);
if (localImageOptions != null) {
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit f42d307

Please sign in to comment.