From ebf4344fe2b11ef12a3aa751f6f9baefe47163be Mon Sep 17 00:00:00 2001 From: xtaodada Date: Tue, 24 Jan 2023 20:58:43 +0800 Subject: [PATCH] fix: AlertDialog BackgroundColor --- .../src/main/java/org/telegram/ui/ActionBar/AlertDialog.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/AlertDialog.java b/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/AlertDialog.java index a05163265..d300ddff6 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/AlertDialog.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/AlertDialog.java @@ -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);