Search in sources :

Example 1 with RecentsState

use of com.android.quickstep.fallback.RecentsState in project android_packages_apps_Launcher3 by AOSPA.

the class FallbackActivityInterface method getParallelAnimationToLauncher.

@Override
@Nullable
public Animator getParallelAnimationToLauncher(GestureEndTarget endTarget, long duration, RecentsAnimationCallbacks callbacks) {
    FallbackTaskbarUIController uiController = getTaskbarController();
    Animator superAnimator = super.getParallelAnimationToLauncher(endTarget, duration, callbacks);
    if (uiController == null) {
        return superAnimator;
    }
    RecentsState toState = stateFromGestureEndTarget(endTarget);
    Animator taskbarAnimator = uiController.createAnimToRecentsState(toState, duration);
    if (taskbarAnimator == null) {
        return superAnimator;
    }
    if (superAnimator == null) {
        return taskbarAnimator;
    }
    AnimatorSet animatorSet = new AnimatorSet();
    animatorSet.playTogether(superAnimator, taskbarAnimator);
    return animatorSet;
}
Also used : Animator(android.animation.Animator) FallbackTaskbarUIController(com.android.launcher3.taskbar.FallbackTaskbarUIController) RecentsState(com.android.quickstep.fallback.RecentsState) AnimatorSet(android.animation.AnimatorSet) Nullable(androidx.annotation.Nullable)

Example 2 with RecentsState

use of com.android.quickstep.fallback.RecentsState in project android_packages_apps_404Launcher by P-404.

the class FallbackActivityInterface method getParallelAnimationToLauncher.

@Override
@Nullable
public Animator getParallelAnimationToLauncher(GestureEndTarget endTarget, long duration, RecentsAnimationCallbacks callbacks) {
    FallbackTaskbarUIController uiController = getTaskbarController();
    Animator superAnimator = super.getParallelAnimationToLauncher(endTarget, duration, callbacks);
    if (uiController == null) {
        return superAnimator;
    }
    RecentsState toState = stateFromGestureEndTarget(endTarget);
    Animator taskbarAnimator = uiController.createAnimToRecentsState(toState, duration);
    if (taskbarAnimator == null) {
        return superAnimator;
    }
    if (superAnimator == null) {
        return taskbarAnimator;
    }
    AnimatorSet animatorSet = new AnimatorSet();
    animatorSet.playTogether(superAnimator, taskbarAnimator);
    return animatorSet;
}
Also used : Animator(android.animation.Animator) FallbackTaskbarUIController(com.android.launcher3.taskbar.FallbackTaskbarUIController) RecentsState(com.android.quickstep.fallback.RecentsState) AnimatorSet(android.animation.AnimatorSet) Nullable(androidx.annotation.Nullable)

Example 3 with RecentsState

use of com.android.quickstep.fallback.RecentsState in project android_packages_apps_Launcher3 by ArrowOS.

the class FallbackActivityInterface method getParallelAnimationToLauncher.

@Override
@Nullable
public Animator getParallelAnimationToLauncher(GestureEndTarget endTarget, long duration, RecentsAnimationCallbacks callbacks) {
    FallbackTaskbarUIController uiController = getTaskbarController();
    Animator superAnimator = super.getParallelAnimationToLauncher(endTarget, duration, callbacks);
    if (uiController == null) {
        return superAnimator;
    }
    RecentsState toState = stateFromGestureEndTarget(endTarget);
    Animator taskbarAnimator = uiController.createAnimToRecentsState(toState, duration);
    if (taskbarAnimator == null) {
        return superAnimator;
    }
    if (superAnimator == null) {
        return taskbarAnimator;
    }
    AnimatorSet animatorSet = new AnimatorSet();
    animatorSet.playTogether(superAnimator, taskbarAnimator);
    return animatorSet;
}
Also used : Animator(android.animation.Animator) FallbackTaskbarUIController(com.android.launcher3.taskbar.FallbackTaskbarUIController) RecentsState(com.android.quickstep.fallback.RecentsState) AnimatorSet(android.animation.AnimatorSet) Nullable(androidx.annotation.Nullable)

Example 4 with RecentsState

use of com.android.quickstep.fallback.RecentsState in project android_packages_apps_Launcher3 by ProtonAOSP.

the class FallbackActivityInterface method getParallelAnimationToLauncher.

@Override
@Nullable
public Animator getParallelAnimationToLauncher(GestureEndTarget endTarget, long duration, RecentsAnimationCallbacks callbacks) {
    FallbackTaskbarUIController uiController = getTaskbarController();
    Animator superAnimator = super.getParallelAnimationToLauncher(endTarget, duration, callbacks);
    if (uiController == null) {
        return superAnimator;
    }
    RecentsState toState = stateFromGestureEndTarget(endTarget);
    Animator taskbarAnimator = uiController.createAnimToRecentsState(toState, duration);
    if (taskbarAnimator == null) {
        return superAnimator;
    }
    if (superAnimator == null) {
        return taskbarAnimator;
    }
    AnimatorSet animatorSet = new AnimatorSet();
    animatorSet.playTogether(superAnimator, taskbarAnimator);
    return animatorSet;
}
Also used : Animator(android.animation.Animator) FallbackTaskbarUIController(com.android.launcher3.taskbar.FallbackTaskbarUIController) RecentsState(com.android.quickstep.fallback.RecentsState) AnimatorSet(android.animation.AnimatorSet) Nullable(androidx.annotation.Nullable)

Aggregations

Animator (android.animation.Animator)4 AnimatorSet (android.animation.AnimatorSet)4 Nullable (androidx.annotation.Nullable)4 FallbackTaskbarUIController (com.android.launcher3.taskbar.FallbackTaskbarUIController)4 RecentsState (com.android.quickstep.fallback.RecentsState)4