mirror of
				https://github.com/SimpleMobileTools/Simple-Camera.git
				synced 2025-06-27 09:02:59 +02:00 
			
		
		
		
	add a comment to a wild part
This commit is contained in:
		| @@ -464,6 +464,7 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O | ||||
|             } | ||||
|             final LayoutParams lp = mSurfaceView.getLayoutParams(); | ||||
|  | ||||
|             // make sure to occupy whole width in every case | ||||
|             if (mScreenSize.x > mPreviewSize.height) { | ||||
|                 final float ratio = (float) mScreenSize.x / mPreviewSize.height; | ||||
|                 lp.width = (int) (mPreviewSize.height * ratio); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user