mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-01-24 04:10:51 +01:00
always use the max possible preview in video
This commit is contained in:
parent
e68384100a
commit
69c269d7c6
@ -633,13 +633,9 @@ public class Preview extends ViewGroup
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
mSwitchToVideoAsap = false;
|
mSwitchToVideoAsap = false;
|
||||||
Camera.Size preferred = mParameters.getPreferredPreviewSizeForVideo();
|
|
||||||
|
|
||||||
if (preferred == null) {
|
|
||||||
final List<Camera.Size> previewSizes = mParameters.getSupportedPreviewSizes();
|
final List<Camera.Size> previewSizes = mParameters.getSupportedPreviewSizes();
|
||||||
Collections.sort(previewSizes, new SizesComparator());
|
Collections.sort(previewSizes, new SizesComparator());
|
||||||
preferred = previewSizes.get(0);
|
Camera.Size preferred = previewSizes.get(0);
|
||||||
}
|
|
||||||
|
|
||||||
mParameters.setPreviewSize(preferred.width, preferred.height);
|
mParameters.setPreviewSize(preferred.width, preferred.height);
|
||||||
mCamera.setParameters(mParameters);
|
mCamera.setParameters(mParameters);
|
||||||
@ -759,7 +755,7 @@ public class Preview extends ViewGroup
|
|||||||
if (file.exists() && file.length() == 0) {
|
if (file.exists() && file.length() == 0) {
|
||||||
file.delete();
|
file.delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void toggleShutterSound(Boolean mute) {
|
private void toggleShutterSound(Boolean mute) {
|
||||||
if (!Config.Companion.newInstance(mContext).isSoundEnabled()) {
|
if (!Config.Companion.newInstance(mContext).isSoundEnabled()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user