浏览代码

[공통][Common] 다이얼로그 버그 수정

Hasemi 6 年之前
父节点
当前提交
f6376b7418

+ 0 - 2
app/src/main/java/kr/co/zumo/app/lifeplus/view/dialog/AlertDialog.java

@@ -118,9 +118,7 @@ public class AlertDialog extends TextDialog<ICustomDialogListener<AlertDialog>>
     textViewPositiveButton = view.findViewById(R.id.text_view_write_app_review);
     textViewTitle = view.findViewById(R.id.text_view_title);
     textViewContents = view.findViewById(R.id.text_view_dialog_message);
-
     textViewTitle.setVisibility(titleStringId == R.string.empty_string ? View.GONE : View.VISIBLE);
-
     textViewPositiveButton.setText(positiveButtonLabel == R.string.empty_string ? R.string.confirm : positiveButtonLabel);
 
     if (titleStringId != R.string.empty_string) {

+ 0 - 7
app/src/main/java/kr/co/zumo/app/lifeplus/view/dialog/ConfirmDialog.java

@@ -122,22 +122,15 @@ public class ConfirmDialog extends TextDialog<ICustomConfirmListener<ConfirmDial
 
     imageViewClose.setVisibility(isAppReviewType ? View.VISIBLE : View.GONE);
     textViewTitle.setVisibility(titleStringId == R.string.empty_string ? View.GONE : View.VISIBLE);
-    textViewPositiveButtonText.setVisibility(positiveButtonLabel == R.string.empty_string ? View.GONE : View.VISIBLE);
-    textViewNegativeButtonText.setVisibility(negativeButtonLabel == R.string.empty_string ? View.GONE : View.VISIBLE);
-
 
     textViewPositiveButtonText.setText(positiveButtonLabel == R.string.empty_string ? R.string.confirm : positiveButtonLabel);
     textViewNegativeButtonText.setText(negativeButtonLabel == R.string.empty_string ? R.string.cancel : negativeButtonLabel);
-    textViewPositiveButtonText.setText(positiveButtonLabel == R.string.empty_string ? R.string.confirm : positiveButtonLabel);
-
 
     if (titleStringId != R.string.empty_string) {
       textViewTitle.setText(titleStringId);
     }
-
     textViewContents.setText(text);
 
-
     //왼쪽 클릭
     textViewNegativeButtonText.setOnClickListener(view1 -> {
       if (null != getCustomListener()) {