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

Commit 75c21ca9 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Revert "Start drawing immediately"

This reverts commit 3127c2a4.

The original CL caused various issues for which we don't have the
time/not willing to take the risk.

Bug: 27864389
Bug: 27451341
parent c28230cf
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2126,7 +2126,7 @@ public final class ViewRootImpl implements ViewParent,

        boolean cancelDraw = mAttachInfo.mTreeObserver.dispatchOnPreDraw() || !isViewVisible;

        if (!cancelDraw) {
        if (!cancelDraw && !newSurface) {
            if (mPendingTransitions != null && mPendingTransitions.size() > 0) {
                for (int i = 0; i < mPendingTransitions.size(); ++i) {
                    mPendingTransitions.get(i).startChangingAnimations();
@@ -2175,7 +2175,6 @@ public final class ViewRootImpl implements ViewParent,
            }
        }
    }

    private void handleOutOfResourcesException(Surface.OutOfResourcesException e) {
        Log.e(mTag, "OutOfResourcesException initializing HW surface", e);
        try {