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

Commit 03064a1e authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Directly assign mDepth

A request to set a new depth is ignored if the surface is currently
invalid. We should cache what was the requested value, so it will be
applied once the surface is valid again.

Test: manual
Fixes: 209028986
Change-Id: I812816da4b0139c7ea7b53a9fb00f11265ecdea8
parent b92c4e23
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -289,10 +289,9 @@ public class DepthController implements StateHandler<LauncherState>,
        if (Float.compare(mDepth, depthF) == 0) {
            return;
        }
        if (dispatchTransactionSurface(depthF)) {
        dispatchTransactionSurface(depthF);
        mDepth = depthF;
    }
    }

    public void onOverlayScrollChanged(float progress) {
        // Round out the progress to dedupe frequent, non-perceptable updates