Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/openfoodfacts#944' into …
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurtanuki committed Feb 18, 2022
2 parents 54e3218 + dca03dd commit f18fb9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v2

- name: crowdin action
uses: crowdin/[email protected].6
uses: crowdin/[email protected].7
continue-on-error: true
with:
# Upload sources to Crowdin
Expand Down
4 changes: 2 additions & 2 deletions packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ class MLKitScannerPageState extends State<MLKitScannerPage> {
ResolutionPreset.high,
enableAudio: false,
);
_controller?.setFocusMode(FocusMode.auto);
_controller?.lockCaptureOrientation(DeviceOrientation.portraitUp);

// If the controller is initialized update the UI.
_controller?.addListener(() {
Expand All @@ -142,6 +140,8 @@ class MLKitScannerPageState extends State<MLKitScannerPage> {

try {
await _controller?.initialize();
_controller?.setFocusMode(FocusMode.auto);
_controller?.lockCaptureOrientation(DeviceOrientation.portraitUp);
_controller?.startImageStream(_processCameraImage);
} on CameraException catch (e) {
if (kDebugMode) {
Expand Down

0 comments on commit f18fb9f

Please sign in to comment.