Search in sources :

Example 16 with StateHandler

use of com.android.launcher3.LauncherStateManager.StateHandler in project android_packages_apps_Launcher3 by ProtonAOSP.

the class BaseQuickstepLauncher method collectStateHandlers.

@Override
protected void collectStateHandlers(List<StateHandler> out) {
    super.collectStateHandlers(out);
    out.add(getDepthController());
    out.add(new RecentsViewStateController(this));
    out.add(new BackButtonAlphaHandler(this));
}
Also used : BackButtonAlphaHandler(com.android.launcher3.statehandlers.BackButtonAlphaHandler) RecentsViewStateController(com.android.launcher3.uioverrides.RecentsViewStateController)

Example 17 with StateHandler

use of com.android.launcher3.LauncherStateManager.StateHandler in project android_packages_apps_Launcher3 by ProtonAOSP.

the class StateManager method createAnimationToNewWorkspaceInternal.

private PendingAnimation createAnimationToNewWorkspaceInternal(final STATE_TYPE state) {
    PendingAnimation builder = new PendingAnimation(mConfig.duration);
    if (!mConfig.hasAnimationFlag(SKIP_ALL_ANIMATIONS)) {
        for (StateHandler handler : getStateHandlers()) {
            handler.setStateWithAnimation(state, mConfig, builder);
        }
    }
    builder.addListener(createStateAnimationListener(state));
    mConfig.setAnimation(builder.buildAnim(), state);
    return builder;
}
Also used : PendingAnimation(com.android.launcher3.anim.PendingAnimation)

Example 18 with StateHandler

use of com.android.launcher3.LauncherStateManager.StateHandler in project android_packages_apps_Launcher3 by AOSPA.

the class BaseQuickstepLauncher method collectStateHandlers.

@Override
protected void collectStateHandlers(List<StateHandler> out) {
    super.collectStateHandlers(out);
    out.add(getDepthController());
    out.add(new RecentsViewStateController(this));
    out.add(new BackButtonAlphaHandler(this));
}
Also used : BackButtonAlphaHandler(com.android.launcher3.statehandlers.BackButtonAlphaHandler) RecentsViewStateController(com.android.launcher3.uioverrides.RecentsViewStateController)

Aggregations

PendingAnimation (com.android.launcher3.anim.PendingAnimation)12 BackButtonAlphaHandler (com.android.launcher3.statehandlers.BackButtonAlphaHandler)5 RecentsViewStateController (com.android.launcher3.uioverrides.RecentsViewStateController)5 Animator (android.animation.Animator)1 AnimatorSet (android.animation.AnimatorSet)1 AnimationSuccessListener (com.android.launcher3.anim.AnimationSuccessListener)1