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

Commit 5e04d182 authored by Winson Chung's avatar Winson Chung
Browse files

Add catch-all for invalid surface

Bug: 271972752
Test: Presubmit
Change-Id: I3b268310a0767529cf6d69fc2b3b9559f77a3cbd
parent 0f6ed614
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -644,6 +644,10 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
    private void dispatchNavigationBarSurface() {
        try {
            if (mOverviewProxy != null) {
                // Catch all for cases where the surface is no longer valid
                if (mNavigationBarSurface != null && !mNavigationBarSurface.isValid()) {
                    mNavigationBarSurface = null;
                }
                mOverviewProxy.onNavigationBarSurface(mNavigationBarSurface);
            }
        } catch (RemoteException e) {