diff --git a/library/src/eu/inmite/android/lib/dialogs/SimpleDialogFragment.java b/library/src/eu/inmite/android/lib/dialogs/SimpleDialogFragment.java
index <HASH>..<HASH> 100644
--- a/library/src/eu/inmite/android/lib/dialogs/SimpleDialogFragment.java
+++ b/library/src/eu/inmite/android/lib/dialogs/SimpleDialogFragment.java
@@ -224,7 +224,7 @@ public class SimpleDialogFragment extends BaseDialogFragment {
         @Override
         protected Bundle prepareArguments() {
             // close button by default
-            if (!mHideCloseButton) {
+            if (mHideCloseButton) {
                 if (mPositiveButtonText == null && mNegativeButtonText == null) {
                     mPositiveButtonText = mContext.getString(R.string.dialog_close);
                 }
Added a function to hide the close button