From 7a8602dce903158d50d0c90bcfe2dc8898dd16a8 Mon Sep 17 00:00:00 2001 From: Chun-Ku Lin Date: Mon, 22 May 2023 21:19:05 +0000 Subject: [PATCH] Set textDirection=locale and layoutDirection=locale for alert dialog It's strongly recommended by internationalization team to set android:textDirection="locale" and android:layoutDirection="locale" to tackle a text that consists of RTL and LTR characters. Bug: 279491415 Bug: 283608580 Bug: 283608637 Test: manual Merged-In: I0dfa0da22e70d267d8d8ed8e9c5be3d6db107841 Change-Id: I0dfa0da22e70d267d8d8ed8e9c5be3d6db107841 (cherry picked from commit 219d4e6ca16cd751fd876e8ce77491defdcd62ff) --- res/values/themes.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/res/values/themes.xml b/res/values/themes.xml index eeba1c77aca..e3c1b20cf3f 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -132,6 +132,8 @@ adjustResize true true + locale + locale @style/Widget.ActionBar