예제 #1
0
  @Override
  public void closePanel(StateChangeReason reason, boolean animate) {
    super.closePanel(reason, animate);

    // If the close action is animated, the Layout will be hidden when
    // the animation is finished, so we should only hide the Layout
    // here when not animating.
    if (!animate && mSearchPanelHost != null) {
      mSearchPanelHost.hideLayout(true);
    }

    mHasSearchContentViewBeenTouched = false;
  }
예제 #2
0
  @Override
  protected void onAnimationFinished() {
    super.onAnimationFinished();

    if (shouldHideContextualSearchLayout()) {
      if (mSearchPanelHost != null) {
        mSearchPanelHost.hideLayout(false);
      }
    }

    if (mShouldPromoteToTabAfterMaximizing && getPanelState() == PanelState.MAXIMIZED) {
      mShouldPromoteToTabAfterMaximizing = false;
      mManagementDelegate.promoteToTab();
    }
  }