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

Commit 45f09dc3 authored by Lucas Dupin's avatar Lucas Dupin Committed by Android (Google) Code Review
Browse files

Merge "Synchronize surface transaction" into sc-v2-dev

parents 02da4740 0c70dbdc
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import android.animation.ObjectAnimator;
import android.os.IBinder;
import android.os.SystemProperties;
import android.util.FloatProperty;
import android.view.AttachedSurfaceControl;
import android.view.CrossWindowBlurListeners;
import android.view.SurfaceControl;
import android.view.View;
@@ -316,7 +317,12 @@ public class DepthController implements StateHandler<LauncherState>,
                transaction.setEarlyWakeupEnd();
                mInEarlyWakeUp = false;
            }
            transaction.apply();

            AttachedSurfaceControl rootSurfaceControl =
                    mLauncher.getRootView().getRootSurfaceControl();
            if (rootSurfaceControl != null) {
                rootSurfaceControl.applyTransactionOnDraw(transaction);
            }
        }
        return true;
    }