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

Commit ccb321ca authored by Mark Harman's avatar Mark Harman
Browse files

Crash related to multi-camera devices.

parent 7673c600
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@
<pre>
Version 1.52 (Working in progress)

FIXED   Crash related to multi-camera devices.
FIXED   Don't show zebra stripes, focus peaking or histogram, when displaying resultant photo for
        "Pause after taking photo" option.
FIXED   Problem where clicking on gallery icon would sometimes go to a "base" image instead of HDR
+8 −1
Original line number Diff line number Diff line
@@ -2251,6 +2251,13 @@ public class MainActivity extends AppCompatActivity {
        if( indx == -1 ) {
            Log.e(TAG, "camera id not in current camera set");
            // this shouldn't happen, but if it does, revert to the first camera id in the set
            // update: oddly had reports of IndexOutOfBoundsException crashes from Google Play from camera_set.get(0)
            // because of camera_set having length 0, so stick with currCameraId in such cases
            if( camera_set.size() == 0 ) {
                Log.e(TAG, "camera_set is empty");
                cameraId = currCameraId;
            }
            else
                cameraId = camera_set.get(0);
        }
        else {