mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
move getSelectedResolution inside the camera null check
This commit is contained in:
@ -378,8 +378,8 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun showChangeResolutionDialog() {
|
fun showChangeResolutionDialog() {
|
||||||
val oldResolution = getSelectedResolution()
|
|
||||||
if (mCamera != null) {
|
if (mCamera != null) {
|
||||||
|
val oldResolution = getSelectedResolution()
|
||||||
ChangeResolutionDialog(mActivity, config, mCamera!!) {
|
ChangeResolutionDialog(mActivity, config, mCamera!!) {
|
||||||
if (oldResolution != getSelectedResolution()) {
|
if (oldResolution != getSelectedResolution()) {
|
||||||
refreshPreview()
|
refreshPreview()
|
||||||
|
Reference in New Issue
Block a user