Exemplo n.º 1
0
  public void hideAutoLogin(boolean animate) {
    if (mUseQuickControls) {
      mBaseUi.hideTitleBar();
      mAutoLogin.setVisibility(View.GONE);
      mBaseUi.refreshWebView();
    } else {
      if (animate) {
        Animation anim = AnimationUtils.loadAnimation(getContext(), R.anim.autologin_exit);
        anim.setAnimationListener(
            new AnimationListener() {
              @Override
              public void onAnimationEnd(Animation a) {
                mAutoLogin.setVisibility(View.GONE);
                mBaseUi.refreshWebView();
              }

              @Override
              public void onAnimationStart(Animation a) {}

              @Override
              public void onAnimationRepeat(Animation a) {}
            });
        mAutoLogin.startAnimation(anim);
      } else if (mAutoLogin.getAnimation() == null) {
        mAutoLogin.setVisibility(View.GONE);
        mBaseUi.refreshWebView();
      }
    }
  }
Exemplo n.º 2
0
 @Override
 public void onDismiss() {
   final Tab currentTab = mBaseUi.getActiveTab();
   mBaseUi.hideTitleBar();
   post(
       new Runnable() {
         public void run() {
           clearFocus();
           if ((currentTab != null) && !mInVoiceMode) {
             setDisplayTitle(currentTab.getUrl());
           }
         }
       });
 }