/** * Show a centered fullscreen dialog with given title and information text. Doesn't do anything if * already shown. Hide before show a new one. * * @param title Dialog title text * @param info Dialog info text */ private void showCenteredFullScreenDialog(String title, String info) { if (centeredFullScreenDialog != null) { return; } FragmentManager fragmentManager = getFragmentManager(); centeredFullScreenDialog = OverlayDialog.newInstance(title, info); fragmentManager .beginTransaction() .add(R.id.fullDialogFrameLayout, centeredFullScreenDialog) .commit(); }