mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
removing a local variablec cpHigh
This commit is contained in:
@ -491,10 +491,11 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
|
|||||||
}
|
}
|
||||||
|
|
||||||
val resolution = getSelectedResolution()
|
val resolution = getSelectedResolution()
|
||||||
val cpHigh = CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH)
|
CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).apply {
|
||||||
cpHigh.videoFrameWidth = resolution.width
|
videoFrameWidth = resolution.width
|
||||||
cpHigh.videoFrameHeight = resolution.height
|
videoFrameHeight = resolution.height
|
||||||
mRecorder!!.setProfile(cpHigh)
|
mRecorder!!.setProfile(this)
|
||||||
|
}
|
||||||
|
|
||||||
if (mActivity.needsStupidWritePermissions(mCurrVideoPath)) {
|
if (mActivity.needsStupidWritePermissions(mCurrVideoPath)) {
|
||||||
if (config.treeUri.isEmpty()) {
|
if (config.treeUri.isEmpty()) {
|
||||||
|
Reference in New Issue
Block a user