fix: AlertDialog BackgroundColor

This commit is contained in:
xtaodada 2023-01-24 20:58:43 +08:00
parent 465a9b5371
commit ebf4344fe2
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -747,6 +747,8 @@ public class AlertDialog extends Dialog implements Drawable.Callback, Notificati
messageTextView.setLines(1);
messageTextView.setEllipsize(TextUtils.TruncateAt.END);
progressViewContainer.addView(messageTextView, LayoutHelper.createFrame(LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT, (LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT) | Gravity.CENTER_VERTICAL, (LocaleController.isRTL ? 0 : 62), 0, (LocaleController.isRTL ? 62 : 0), 0));
backgroundColor = getThemedColor(Theme.key_dialog_inlineProgressBackground);
containerView.setBackgroundDrawable(Theme.createRoundRectDrawable(AndroidUtilities.dp(18), backgroundColor));
} else if (progressViewStyle == ALERT_TYPE_LOADING) {
setCanceledOnTouchOutside(false);
setCancelable(false);