protected static void show(FragmentActivity activity,
        DialogFragmentHelper fragment, Bundle arguments, String tag) {
        FragmentManager manager = activity.getSupportFragmentManager();
        FragmentTransaction transaction = manager.beginTransaction();
        Fragment current = manager.findFragmentByTag(tag);
        if (current != null) {
            transaction.remove(current);
        }
        transaction.addToBackStack(null);

        fragment.setArguments(arguments);
        fragment.show(manager, tag);
    }
Show dialog

@param activity
@param fragment
@param arguments
@param tag
app/src/main/java/com/github/pockethub/android/ui/base/DialogFragmentHelper.java