mirror of
				https://github.com/SimpleMobileTools/Simple-Camera.git
				synced 2025-06-27 09:02:59 +02:00 
			
		
		
		
	catch exceptions thrown at startPreview
This commit is contained in:
		@@ -336,7 +336,10 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
 | 
			
		||||
    private fun resumePreview() {
 | 
			
		||||
        mIsPreviewShown = false
 | 
			
		||||
        mActivity.toggleBottomButtons(false)
 | 
			
		||||
        mCamera?.startPreview()
 | 
			
		||||
        try {
 | 
			
		||||
            mCamera?.startPreview()
 | 
			
		||||
        } catch (e: Exception) {
 | 
			
		||||
        }
 | 
			
		||||
        mCanTakePicture = true
 | 
			
		||||
        focusArea(false, false)
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user