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

Commit 5760c4ef authored by Mark Harman's avatar Mark Harman
Browse files

Fix crash due to trying to change exposure compensation beyond min or max values..

parent 123a5c89
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -47,6 +47,10 @@
<p>&lt; <small><a href="index.html">Main Page.</a></small></p>

<pre>
Version 1.54.1 (Work in progress)

FIXED   Crash in 1.54 due to trying to change exposure compensation beyond min or max values.

Version 1.54 (2025/04/03)

FIXED   Device specific crashes when starting with Camera2 API (related to camera vendor
+4 −1
Original line number Diff line number Diff line
@@ -1490,7 +1490,10 @@ public class MainActivity extends AppCompatActivity implements PreferenceFragmen
                int progress = seekBar.getProgress();
                int new_progress = progress + change;
                int current_exposure = getExposureSeekbarValue(progress);
                if( getExposureSeekbarValue(new_progress) == 0 && current_exposure != 0 ) {
                if( new_progress < 0 || new_progress > exposure_seekbar_values.size()-1 ) {
                    // skip
                }
                else if( getExposureSeekbarValue(new_progress) == 0 && current_exposure != 0 ) {
                    // snap to the central repeated zero
                    new_progress = exposure_seekbar_values_zero;
                    change = new_progress - progress;