コード例 #1
0
  /** 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();
  }
コード例 #2
0
ファイル: RecentsView.java プロジェクト: xuwanjin/SystemUI
  /** 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();
  }