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

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

Fix more Google Play crashes.

parent 48f8f2eb
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
@@ -30,8 +30,22 @@ public class RawImage {
    public void writeImage(OutputStream dngOutput) throws IOException {
		if( MyDebug.LOG )
			Log.d(TAG, "writeImage");
		try {
            dngCreator.writeImage(dngOutput, image);
        }
        catch(AssertionError e) {
		    // have had AssertionError from OnePlus 5 on Google Play; rethrow as an IOException so it's handled
            // in the same way
		    e.printStackTrace();
		    throw new IOException();
        }
        catch(IllegalStateException e) {
		    // have had IllegalStateException from Galaxy Note 8 on Google Play; rethrow as an IOException so it's handled
            // in the same way
		    e.printStackTrace();
		    throw new IOException();
        }
    }

    /** Closes the image. Must be called to free up resources when no longer needed. After calling
     *  this method, this object should not be used.
+3 −1
Original line number Diff line number Diff line
@@ -875,8 +875,10 @@ public class MainUI {
				}
				else {
					editor.apply();
					if( preview.getCameraController() != null ) {
						preview.getCameraController().setISO(option);
					}
				}

				setupExposureUI();
			}