예제 #1
0
 public static final void hideUserProfileFragment() {
   if ((userProfileFragment != null) && (userProfileFragment.isAdded()))
     Multicards.getMainActivity()
         .getFragmentManager()
         .beginTransaction()
         .remove(userProfileFragment)
         .commit();
 }
예제 #2
0
  public static final void showUserProfileFragment(Boolean boolConfigurationChange) {
    hidePlayersInfo();
    hideCurrentFlashcardFragment();
    hideMainMenu();

    if ((userProfileFragment == null) || boolConfigurationChange) {
      userProfileFragment = new UserProfileFragment();
    }

    if (!userProfileFragment.isAdded())
      Multicards.getMainActivity()
          .getFragmentManager()
          .beginTransaction()
          .add(R.id.fragment_flashcard_container, userProfileFragment)
          .commit();
    intUIState = Constants.UI_STATE_SETTINGS;
  }