mirror of
				https://github.com/SimpleMobileTools/Simple-Camera.git
				synced 2025-06-27 09:02:59 +02:00 
			
		
		
		
	show an error if Data returned from the camera after capturing a photo is empty
This commit is contained in:
		| @@ -323,6 +323,11 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan | ||||
|     } | ||||
|  | ||||
|     private val takePictureCallback = Camera.PictureCallback { data, cam -> | ||||
|         if (data.isEmpty()) { | ||||
|             mActivity!!.toast(R.string.unknown_error_occurred) | ||||
|             return@PictureCallback | ||||
|         } | ||||
|  | ||||
|         isWaitingForTakePictureCallback = false | ||||
|         if (!isImageCaptureIntent) { | ||||
|             handlePreview() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user