mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-01-30 15:04:49 +01:00
move getSelectedResolution inside the camera null check
This commit is contained in:
parent
b7615013aa
commit
811cfbf668
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user