summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Cole <captaincole@google.com>2023-06-01 15:08:35 -0700
committerAndrew Cole <captaincole@google.com>2023-06-01 15:08:35 -0700
commit0aae6049e2a2249ebb3ad7699eb4b3253b40cc5b (patch)
tree6a0bb17d27898eb05438827fffc3cdc8070a0fbc /src
parent052045907c3fbaffe44d07aec28f8fb428bd14c4 (diff)
downloadLauncher3-0aae6049e2a2249ebb3ad7699eb4b3253b40cc5b.tar.gz
Multi-line titles supporting RTL
In order to support multi-line titles in an RTL configuration we have to override the androidx preferences library and manually set the text direction of the list view to be locale Bug: 279880739 Test: Manual Change-Id: I1f837a14a289e2ced8f8f3655f5ce061b37baa74
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/settings/SettingsActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher3/settings/SettingsActivity.java b/src/com/android/launcher3/settings/SettingsActivity.java
index d3a237c3d4..623b55764a 100644
--- a/src/com/android/launcher3/settings/SettingsActivity.java
+++ b/src/com/android/launcher3/settings/SettingsActivity.java
@@ -249,6 +249,8 @@ public class SettingsActivity extends FragmentActivity
bottomPadding + insets.getSystemWindowInsetBottom());
return insets.consumeSystemWindowInsets();
});
+ // Overriding Text Direction in the Androidx preference library to support RTL
+ view.setTextDirection(View.TEXT_DIRECTION_LOCALE);
}
@Override