Пример #1
0
  @Override
  public void onBackPressed() {

    Fragment details = getSupportFragmentManager().findFragmentById(R.id.detailPane);
    Log.w(Constants.TAG, "instanceof: " + details.getClass());
    if (details instanceof TagDetailFragment) {
      supportFinishAfterTransition();
      super.onBackPressed();
    } else {
      getSupportFragmentManager().popBackStack();
      setActionBarInfo(collected.getNiceName());
      // don't call super here
    }
  }