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

Commit 36a47145 authored by John Reck's avatar John Reck
Browse files

Don't swallow exceptions

Fixes: 260244068
Test: App in bug crashes with IAE
Change-Id: I358ecf4309d82c609863b7f4d8d3d687b7c51f4b
parent 5c2bd27f
Loading
Loading
Loading
Loading
+90 −94
Original line number Diff line number Diff line
@@ -947,7 +947,6 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
                    + " left=" + (mWindowSpaceLeft != mLocation[0])
                    + " top=" + (mWindowSpaceTop != mLocation[1]));

            try {
            mVisible = mRequestedVisible;
            mWindowSpaceLeft = mLocation[0];
            mWindowSpaceTop = mLocation[1];
@@ -1051,9 +1050,6 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
                    releaseSurfaces(false /* releaseSurfacePackage*/);
                }
            }
            } catch (Exception ex) {
                Log.e(TAG, "Exception configuring surface", ex);
            }
            if (DEBUG) Log.v(
                TAG, "Layout: x=" + mScreenRect.left + " y=" + mScreenRect.top
                + " w=" + mScreenRect.width() + " h=" + mScreenRect.height()