Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fd6023c authored by Mark Harman's avatar Mark Harman
Browse files

Also hide settings icon when taking a photo.

parent d5aaa455
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ UPDATED Shutter button now changes to a red square when recording video.
UPDATED Smooth zoom transition when using zoom seekbar (for Camera2 API).
UPDATED Removed -/+ controls for zoom and exposure compensation (these "zoom controls" are now
        deprecated in Android).
UPDATED Also hide settings icon when taking a photo.

Version 1.54.1 (2025/04/07)

+2 −0
Original line number Diff line number Diff line
@@ -1442,6 +1442,7 @@ public class MainUI {
                final boolean is_panorama_recording = main_activity.getApplicationInterface().getGyroSensor().isRecording();
                final int visibility = is_panorama_recording ? View.GONE : (show_gui_photo && show_gui_video) ? View.VISIBLE : View.GONE; // for UI that is hidden while taking photo or video
                final int visibility_video = is_panorama_recording ? View.GONE : show_gui_photo ? View.VISIBLE : View.GONE; // for UI that is only hidden while taking photo
                View settingsButton = main_activity.findViewById(R.id.settings);
                View switchCameraButton = main_activity.findViewById(R.id.switch_camera);
                View switchMultiCameraButton = main_activity.findViewById(R.id.switch_multi_camera);
                View switchVideoButton = main_activity.findViewById(R.id.switch_video);
@@ -1458,6 +1459,7 @@ public class MainUI {
                View faceDetectionButton = main_activity.findViewById(R.id.face_detection);
                View audioControlButton = main_activity.findViewById(R.id.audio_control);
                View popupButton = main_activity.findViewById(R.id.popup);
                settingsButton.setVisibility(visibility_video); // still allow settings when recording video - arguably we shouldn't, but looks wierd given that the other default icons aren't hidden when recording video
                if( main_activity.getPreview().getCameraControllerManager().getNumberOfCameras() > 1 )
                    switchCameraButton.setVisibility(visibility);
                if( main_activity.showSwitchMultiCamIcon() )