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

Commit e98f980a authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Ignoring crash if the 3p icon surface is no longer valid

Test: Verified on device locally
Change-Id: I5684731c3a66d5690f83878f3c4726d859349bd4
parent cbf8fe08
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -294,8 +294,12 @@ public class FallbackSwipeHandler extends
            if (mSurfaceControl != null) {
                currentRect.roundOut(mTempRect);
                Transaction t = new Transaction();
                try {
                    t.setGeometry(mSurfaceControl, null, mTempRect, Surface.ROTATION_0);
                    t.apply();
                } catch (RuntimeException e) {
                    // Ignore
                }
            }
        }