Skip to content

Commit 0231152

Browse files
Christophe smetChristophe smet
Christophe smet
authored and
Christophe smet
committed
Added a function to hide the close button
1 parent a65a963 commit 0231152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/eu/inmite/android/lib/dialogs/SimpleDialogFragment.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public SimpleDialogBuilder setNegativeButtonText(String text) {
224224
@Override
225225
protected Bundle prepareArguments() {
226226
// close button by default
227-
if (!mHideCloseButton) {
227+
if (mHideCloseButton) {
228228
if (mPositiveButtonText == null && mNegativeButtonText == null) {
229229
mPositiveButtonText = mContext.getString(R.string.dialog_close);
230230
}

0 commit comments

Comments
 (0)