Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit bb86f93

Browse files
author
David Roume
committed
[camera]: remove debug exception in resolution feature
1 parent a6ee2ec commit bb86f93

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

  • packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/resolution

packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ static Size computeBestPreviewSize(int cameraId, ResolutionPreset preset)
125125
// ! limiting the condition to Build.VERSION.SDK_INT == 31 && Build.VERSION.SDK_INT == 32 only
126126
// ! to avoid crash on Android 13
127127
if (Build.VERSION.SDK_INT >= 31 && Build.VERSION.SDK_INT < 33) {
128-
throw new AssertionError(
129-
"Calling function [ computeBestPreviewSize ] with SDK v" + Build.VERSION.SDK_INT + " and cameraId = " + cameraId);
130-
131128
EncoderProfiles profile =
132129
getBestAvailableCamcorderProfileForResolutionPreset(cameraId, preset);
133130
List<EncoderProfiles.VideoProfile> videoProfiles = profile.getVideoProfiles();
@@ -264,9 +261,6 @@ private void configureResolution(ResolutionPreset resolutionPreset, int cameraId
264261
// ! limiting the condition to Build.VERSION.SDK_INT == 31 && Build.VERSION.SDK_INT == 32 only
265262
// ! to avoid crash on Android 13
266263
if (Build.VERSION.SDK_INT >= 31 && Build.VERSION.SDK_INT < 33) {
267-
throw new AssertionError(
268-
"Calling function [ configureResolution ] with SDK v" + Build.VERSION.SDK_INT + " and cameraId = " + cameraId);
269-
270264
recordingProfile =
271265
getBestAvailableCamcorderProfileForResolutionPreset(cameraId, resolutionPreset);
272266
List<EncoderProfiles.VideoProfile> videoProfiles = recordingProfile.getVideoProfiles();

0 commit comments

Comments
 (0)