Skip to content

Instantly share code, notes, and snippets.

@waseefakhtar
Last active January 2, 2020 21:04
Show Gist options
  • Save waseefakhtar/79cdd7b5557097d294e89045930a0249 to your computer and use it in GitHub Desktop.
Save waseefakhtar/79cdd7b5557097d294e89045930a0249 to your computer and use it in GitHub Desktop.
IllegalStateException: Can not perform this action after onSaveInstanceState
private static void showRewardDialog(FragmentActivity fragmentActivity) {
final FragmentManager fragmentManager = fragmentActivity.getSupportFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.show(fragmentManager, RewardDialogFragmentKt.FRAGMENT_TAG);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment