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

Commit 47274717 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere Committed by Automerger Merge Worker
Browse files

Merge "Don't schedule SurfaceControl transaction if it is not valid" into tm-d1-dev am: e0c7fee3

parents de170f1f e0c7fee3
Loading
Loading
Loading
Loading
+8 −6
Original line number Original line Diff line number Diff line
@@ -494,9 +494,10 @@ class ActivityLaunchAnimator(
        }
        }


        private fun applyStateToWindow(window: RemoteAnimationTarget, state: LaunchAnimator.State) {
        private fun applyStateToWindow(window: RemoteAnimationTarget, state: LaunchAnimator.State) {
            if (transactionApplierView.viewRootImpl == null) {
            if (transactionApplierView.viewRootImpl == null || !window.leash.isValid) {
                // If the view root we synchronize with was detached, don't apply any transaction
                // Don't apply any transaction if the view root we synchronize with was detached or
                // (as [SyncRtSurfaceTransactionApplier.scheduleApply] would otherwise throw).
                // if the SurfaceControl associated with [window] is not valid, as
                // [SyncRtSurfaceTransactionApplier.scheduleApply] would otherwise throw.
                return
                return
            }
            }


@@ -557,9 +558,10 @@ class ActivityLaunchAnimator(
            state: LaunchAnimator.State,
            state: LaunchAnimator.State,
            linearProgress: Float
            linearProgress: Float
        ) {
        ) {
            if (transactionApplierView.viewRootImpl == null) {
            if (transactionApplierView.viewRootImpl == null || !navigationBar.leash.isValid) {
                // If the view root we synchronize with was detached, don't apply any transaction
                // Don't apply any transaction if the view root we synchronize with was detached or
                // (as [SyncRtSurfaceTransactionApplier.scheduleApply] would otherwise throw).
                // if the SurfaceControl associated with [navigationBar] is not valid, as
                // [SyncRtSurfaceTransactionApplier.scheduleApply] would otherwise throw.
                return
                return
            }
            }