Exemplo n.º 1
0
 @Override
 public void showComboView(ComboViews startingView, Bundle extras) {
   Intent intent = new Intent(mActivity, ComboViewActivity.class);
   intent.putExtra(ComboViewActivity.EXTRA_INITIAL_VIEW, startingView.name());
   intent.putExtra(ComboViewActivity.EXTRA_COMBO_ARGS, extras);
   Tab t = getActiveTab();
   if (t != null) {
     intent.putExtra(ComboViewActivity.EXTRA_CURRENT_URL, t.getUrl());
   }
   mActivity.startActivityForResult(intent, Controller.COMBO_VIEW);
 }
Exemplo n.º 2
0
 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);
 }