diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index 70cbf7f3b03..229f78051f4 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v2 - name: crowdin action - uses: crowdin/github-action@1.4.6 + uses: crowdin/github-action@1.4.7 continue-on-error: true with: # Upload sources to Crowdin diff --git a/packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart b/packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart index 1596447dd8c..da5c74014e0 100644 --- a/packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart +++ b/packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart @@ -126,8 +126,6 @@ class MLKitScannerPageState extends State { ResolutionPreset.high, enableAudio: false, ); - _controller?.setFocusMode(FocusMode.auto); - _controller?.lockCaptureOrientation(DeviceOrientation.portraitUp); // If the controller is initialized update the UI. _controller?.addListener(() { @@ -142,6 +140,8 @@ class MLKitScannerPageState extends State { try { await _controller?.initialize(); + _controller?.setFocusMode(FocusMode.auto); + _controller?.lockCaptureOrientation(DeviceOrientation.portraitUp); _controller?.startImageStream(_processCameraImage); } on CameraException catch (e) { if (kDebugMode) {