mirror of
				https://github.com/SimpleMobileTools/Simple-Camera.git
				synced 2025-06-27 09:02:59 +02:00 
			
		
		
		
	move preview resuming to a separate function
This commit is contained in:
		| @@ -301,6 +301,15 @@ public class Preview extends ViewGroup | ||||
|             new Handler().postDelayed(new Runnable() { | ||||
|                 @Override | ||||
|                 public void run() { | ||||
|                     resumePreview(); | ||||
|                 } | ||||
|             }, PHOTO_PREVIEW_LENGTH); | ||||
|  | ||||
|             new PhotoProcessor(mActivity, mTargetUri).execute(data); | ||||
|         } | ||||
|     }; | ||||
|  | ||||
|     private void resumePreview() { | ||||
|         if (mCamera != null) { | ||||
|             mCamera.startPreview(); | ||||
|         } | ||||
| @@ -312,11 +321,6 @@ public class Preview extends ViewGroup | ||||
|             mCamera.setParameters(mParameters); | ||||
|         } | ||||
|     } | ||||
|             }, PHOTO_PREVIEW_LENGTH); | ||||
|  | ||||
|             new PhotoProcessor(mActivity, mTargetUri).execute(data); | ||||
|         } | ||||
|     }; | ||||
|  | ||||
|     private Camera.Size getOptimalPictureSize() { | ||||
|         final int maxResolution = Config.Companion.newInstance(mContext).getMaxPhotoResolution(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user