mirror of
				https://github.com/SimpleMobileTools/Simple-Camera.git
				synced 2025-06-27 09:02:59 +02:00 
			
		
		
		
	move getSelectedResolution inside the camera null check
This commit is contained in:
		| @@ -378,8 +378,8 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan | ||||
|     } | ||||
|  | ||||
|     fun showChangeResolutionDialog() { | ||||
|         val oldResolution = getSelectedResolution() | ||||
|         if (mCamera != null) { | ||||
|             val oldResolution = getSelectedResolution() | ||||
|             ChangeResolutionDialog(mActivity, config, mCamera!!) { | ||||
|                 if (oldResolution != getSelectedResolution()) { | ||||
|                     refreshPreview() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user