commit | e98f980a9826be66c8e8adf495a94478d4636025 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Thu Dec 10 16:58:23 2020 -0800 |
committer | Sunny Goyal <sunnygoyal@google.com> | Thu Dec 10 16:59:28 2020 -0800 |
tree | c69cc11371c65ad79b1176de4c8e5092fdb8263c | |
parent | cbf8fe08da05b74cd9a8ca4bd14012a25d9a1711 [diff] |
Ignoring crash if the 3p icon surface is no longer valid Test: Verified on device locally Change-Id: I5684731c3a66d5690f83878f3c4726d859349bd4
diff --git a/quickstep/src/com/android/quickstep/FallbackSwipeHandler.java b/quickstep/src/com/android/quickstep/FallbackSwipeHandler.java index ffb05df..901040d 100644 --- a/quickstep/src/com/android/quickstep/FallbackSwipeHandler.java +++ b/quickstep/src/com/android/quickstep/FallbackSwipeHandler.java
@@ -294,8 +294,12 @@ if (mSurfaceControl != null) { currentRect.roundOut(mTempRect); Transaction t = new Transaction(); - t.setGeometry(mSurfaceControl, null, mTempRect, Surface.ROTATION_0); - t.apply(); + try { + t.setGeometry(mSurfaceControl, null, mTempRect, Surface.ROTATION_0); + t.apply(); + } catch (RuntimeException e) { + // Ignore + } } }