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

Commit 168173a6 authored by Joe Onorato's avatar Joe Onorato
Browse files

Don't crash when the window is closing

parent 2cd0a5c6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -282,7 +282,9 @@ public class SurfaceView extends View {
            return;
        }
        ViewRoot viewRoot = (ViewRoot) getRootView().getParent();
        if (viewRoot != null) {
            mTranslator = viewRoot.mTranslator;
        }

        Resources res = getContext().getResources();
        if (mTranslator != null || !res.getCompatibilityInfo().supportsScreen()) {