Merge pull request #2372 from dpalou/MOBILE-2995

MOBILE-2995 qr: Fix camera not stopped and black screen in iOS
main
Juan Leyva 2020-05-15 15:23:22 +02:00 committed by GitHub
commit 1337533819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -1287,5 +1287,9 @@ ion-app.app-root {
ion-content, ion-backdrop, ion-modal:not(.core-modal-fullscreen), core-ion-tabs {
display: none;
}
&.ios .ion-page.show-page~.nav-decor {
display: none;
}
}
}

View File

@ -1534,6 +1534,7 @@ export class CoreUtilsProvider {
// Hide camera preview.
document.body.classList.remove('core-scanning-qr');
this.qrScanner.hide();
this.qrScanner.destroy();
this.qrScanData.observable.unsubscribe(); // Stop scanning.