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

Commit 53f22d98 authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Reapply back button alpha at end of state animation" into ub-launcher3-edmonton

parents 9df4597f 5273b695
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.launcher3.uioverrides;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;

import com.android.launcher3.Launcher;
@@ -56,6 +58,13 @@ public class BackButtonAlphaHandler implements LauncherStateManager.StateHandler
                final float alpha = (float) valueAnimator.getAnimatedValue();
                mOverviewInteractionState.setBackButtonAlpha(alpha, false);
            });
            anim.addListener(new AnimatorListenerAdapter() {
                @Override
                public void onAnimationEnd(Animator animation) {
                    // Reapply the final alpha in case some state (e.g. window focus) changed.
                    UiFactory.onLauncherStateOrFocusChanged(mLauncher);
                }
            });
            builder.play(anim);
        }
    }