/** Requests all task stacks to start their exit-recents animation */
  public void startExitToHomeAnimation(ViewAnimation.TaskViewExitContext ctx) {
    int childCount = getChildCount();
    for (int i = 0; i < childCount; i++) {
      View child = getChildAt(i);
      if (child != mSearchBar) {
        TaskStackView stackView = (TaskStackView) child;
        stackView.startExitToHomeAnimation(ctx);
      }
    }

    // Notify of the exit animation
    mCb.onExitToHomeAnimationTriggered();
  }
Exemplo n.º 2
0
  /** Requests all task stacks to start their exit-recents animation */
  public void startExitToHomeAnimation(ViewAnimation.TaskViewExitContext ctx) {
    Log.d(TAG, "startExitToHomeAnimation: ");
    // We have to increment/decrement the post animation trigger in case there are no children
    // to ensure that it runs
    ctx.postAnimationTrigger.increment();
    List<TaskStackView> stackViews = getTaskStackViews();
    int stackCount = stackViews.size();
    for (int i = 0; i < stackCount; i++) {
      TaskStackView stackView = stackViews.get(i);
      stackView.startExitToHomeAnimation(ctx);
    }
    ctx.postAnimationTrigger.decrement();

    // Notify of the exit animation
    mCb.onExitToHomeAnimationTriggered();
  }