MOBILE-2995 qr: Fix camera not stopped and black screen in iOS
This commit is contained in:
		
							parent
							
								
									a9aba7739b
								
							
						
					
					
						commit
						a2273ba340
					
				| @ -1287,5 +1287,9 @@ ion-app.app-root { | |||||||
|     ion-content, ion-backdrop, ion-modal:not(.core-modal-fullscreen), core-ion-tabs { |     ion-content, ion-backdrop, ion-modal:not(.core-modal-fullscreen), core-ion-tabs { | ||||||
|       display: none; |       display: none; | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     &.ios .ion-page.show-page~.nav-decor { | ||||||
|  |       display: none; | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | |||||||
| @ -1534,6 +1534,7 @@ export class CoreUtilsProvider { | |||||||
|         // Hide camera preview.
 |         // Hide camera preview.
 | ||||||
|         document.body.classList.remove('core-scanning-qr'); |         document.body.classList.remove('core-scanning-qr'); | ||||||
|         this.qrScanner.hide(); |         this.qrScanner.hide(); | ||||||
|  |         this.qrScanner.destroy(); | ||||||
| 
 | 
 | ||||||
|         this.qrScanData.observable.unsubscribe(); // Stop scanning.
 |         this.qrScanData.observable.unsubscribe(); // Stop scanning.
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user