Skip to content

Commit 7705050

Browse files
committed
- fixed message validation in Alerts.java
1 parent d14bb58 commit 7705050

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

base/src/main/java/com/base/utils/Alerts.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ public void show(String title, String body, boolean isHasPositive, boolean isHas
7373
Button btnPositive = dialog.findViewById(R.id.btn_positive);
7474
Button btnNegative = dialog.findViewById(R.id.btn_negative);
7575

76-
if (Validator.isEmptyOrNull(title))
76+
if (!Validator.isEmptyOrNull(title))
7777
txtTitle.setText(title);
7878
else {
7979
txtTitle.setText(mContext.getString(R.string.app_name));
8080
}
8181

82-
if (Validator.isEmptyOrNull(body))
82+
if (!Validator.isEmptyOrNull(body))
8383
txtBody.setText(body);
8484
else
8585
txtBody.setVisibility(View.GONE);
@@ -137,13 +137,13 @@ public void show(String title, String body, boolean isHasPositive, String positi
137137
Button btnPositive = dialog.findViewById(R.id.btn_positive);
138138
Button btnNegative = dialog.findViewById(R.id.btn_negative);
139139

140-
if (Validator.isEmptyOrNull(title))
140+
if (!Validator.isEmptyOrNull(title))
141141
txtTitle.setText(title);
142142
else {
143143
txtTitle.setText(mContext.getString(R.string.app_name));
144144
}
145145

146-
if (Validator.isEmptyOrNull(body))
146+
if (!Validator.isEmptyOrNull(body))
147147
txtBody.setText(body);
148148
else
149149
txtBody.setVisibility(View.GONE);

0 commit comments

Comments
 (0)