Ejemplo n.º 1
0
  @Override
  public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    initActionBarWithHomeButton(getString(R.string.debug));

    if (BuildConfig.DEBUG) {
      mDevelInfo.setText(mDevelManager.getBuildDescription());
      mDevelInfo.setVisibility(View.VISIBLE);
    }

    mAdapter = new EventsArrayAdapter(getContext());
    mAdapter.setOnTriggerEventListener(this);
    mEventPlugins.setAdapter(mAdapter);
  }
Ejemplo n.º 2
0
 /** Update the list of events */
 private void updateUI() {
   mAdapter.clear();
   mAdapter.addAllPlugins(Event.Type.values());
   mAdapter.notifyDataSetChanged();
 }