diff options
author | Tony Wickham <twickham@google.com> | 2018-05-16 18:15:38 -0700 |
---|---|---|
committer | Tony <twickham@google.com> | 2018-05-22 11:05:01 -0700 |
commit | 4e21c1b5523fc80545260762a95c5d0f386cb734 (patch) | |
tree | 9330740351e96cdc5b6e2569a5ede5f7c8764a55 /src/com/android/launcher3/allapps | |
parent | 8417a7b5140bf6dd27702331e787887a7b8c2e3d (diff) | |
download | android_packages_apps_Trebuchet-4e21c1b5523fc80545260762a95c5d0f386cb734.tar.gz android_packages_apps_Trebuchet-4e21c1b5523fc80545260762a95c5d0f386cb734.tar.bz2 android_packages_apps_Trebuchet-4e21c1b5523fc80545260762a95c5d0f386cb734.zip |
Cleanup how we set back button alpha
Add BackButtonAlphaHandler to set back button alpha, instead of setting
it from multiple places.
Also force back button alpha to be 1 if swipe up is disabled (b/80091187)
Change-Id: I49b63a0e6b033a3a947a847669a398f1b9ff0564
Diffstat (limited to 'src/com/android/launcher3/allapps')
-rw-r--r-- | src/com/android/launcher3/allapps/AllAppsTransitionController.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsTransitionController.java b/src/com/android/launcher3/allapps/AllAppsTransitionController.java index b5c821ac2..2c3e3ee7b 100644 --- a/src/com/android/launcher3/allapps/AllAppsTransitionController.java +++ b/src/com/android/launcher3/allapps/AllAppsTransitionController.java @@ -25,11 +25,9 @@ import com.android.launcher3.LauncherState; import com.android.launcher3.LauncherStateManager.AnimationConfig; import com.android.launcher3.LauncherStateManager.StateHandler; import com.android.launcher3.R; -import com.android.launcher3.Utilities; import com.android.launcher3.anim.AnimationSuccessListener; import com.android.launcher3.anim.AnimatorSetBuilder; import com.android.launcher3.anim.PropertySetter; -import com.android.launcher3.uioverrides.UiFactory; import com.android.launcher3.util.Themes; import com.android.launcher3.views.ScrimView; @@ -184,13 +182,6 @@ public class AllAppsTransitionController implements StateHandler, OnDeviceProfil anim.setDuration(config.duration); anim.setInterpolator(builder.getInterpolator(ANIM_VERTICAL_PROGRESS, interpolator)); anim.addListener(getProgressAnimatorListener()); - if (toState.hideBackButton) { - anim.addUpdateListener(animation -> { - final float alpha = (float) animation.getAnimatedValue(); - UiFactory.setBackButtonAlpha(mLauncher, 1 - Utilities.boundToRange(alpha, 0, 1), - false /* animate */); - }); - } builder.play(anim); |