Example #1
0
 public static final void hidePlayersInfo() {
   if ((playersInfoFragment != null) && (playersInfoFragment.isAdded()))
     Multicards.getMainActivity()
         .getFragmentManager()
         .beginTransaction()
         .remove(playersInfoFragment)
         .commit();
 }
Example #2
0
  public static final void showPlayersInfo(Boolean boolConfigurationChange) {
    if ((playersInfoFragment == null) || boolConfigurationChange)
      playersInfoFragment = new PlayersInfoFragment();

    if (!playersInfoFragment.isAdded()) {
      Multicards.getMainActivity()
          .getFragmentManager()
          .beginTransaction()
          .add(R.id.fragment_players_info_container, playersInfoFragment)
          .commit();
      Multicards.getMainActivity().getFragmentManager().executePendingTransactions();
    }
  }