@Override public void hideComboView() { if (isComboViewShowing()) { mComboView.hideViews(); mActionBar = mActivity.getActionBar(); setupActionBar(); if (mActionBar != null) mActionBar.show(); mNavBar.setVisibility(View.VISIBLE); } }
@Override public void onProgressChanged(Tab tab) { super.onProgressChanged(tab); if (mComboView != null && !mComboView.isShowing()) { mActionBar = mActivity.getActionBar(); setupActionBar(); if (mActionBar != null) mActionBar.show(); if (mNavBar != null) mNavBar.setVisibility(View.VISIBLE); } }
public void showComboView(ComboViews startWith, Bundle extras) { if (mComboView == null) { ViewStub stub = (ViewStub) mActivity.getWindow().getDecorView().findViewById(R.id.combo_view_stub); mComboView = (ComboView) stub.inflate(); mComboView.setVisibility(View.GONE); mComboView.setupViews(mActivity); } mNavBar.setVisibility(View.GONE); if (mActionBar != null) mActionBar.hide(); Bundle b = new Bundle(); b.putString(ComboViewActivity.EXTRA_INITIAL_VIEW, startWith.name()); b.putBundle(ComboViewActivity.EXTRA_COMBO_ARGS, extras); Tab t = getActiveTab(); if (t != null) { b.putString(ComboViewActivity.EXTRA_CURRENT_URL, t.getUrl()); } mComboView.showViews(mActivity, b); }
@Override public boolean isComboViewShowing() { return mComboView != null && mComboView.getVisibility() == View.VISIBLE; }