diff options
| author | Fabrice Di Meglio <fdimeglio@google.com> | 2012-02-15 20:22:56 -0800 |
|---|---|---|
| committer | Fabrice Di Meglio <fdimeglio@google.com> | 2012-02-16 16:42:20 -0800 |
| commit | 6d3d5057b445069e73fd06adbc11fa412e7c48c3 (patch) | |
| tree | ed57e591ab52911b368cf340574109df4d976dc0 /core/java/android/widget | |
| parent | e800892c4b4e05914f0d08a7928113193b39d037 (diff) | |
| download | frameworks_base-6d3d5057b445069e73fd06adbc11fa412e7c48c3.zip frameworks_base-6d3d5057b445069e73fd06adbc11fa412e7c48c3.tar.gz frameworks_base-6d3d5057b445069e73fd06adbc11fa412e7c48c3.tar.bz2 | |
Improve textDirection APIs
Change-Id: I8bff30f5adb0ab4077145d83ac4a716e04f289ac
Diffstat (limited to 'core/java/android/widget')
| -rw-r--r-- | core/java/android/widget/TextView.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 13798ef..688b37f 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -11407,7 +11407,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } @Override - protected void resolveTextDirection() { + public void onResolveTextDirection() { if (hasPasswordTransformationMethod()) { mTextDir = TextDirectionHeuristics.LOCALE; return; @@ -11416,9 +11416,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener // Always need to resolve layout direction first final boolean defaultIsRtl = (getResolvedLayoutDirection() == LAYOUT_DIRECTION_RTL); - // Then resolve text direction on the parent - super.resolveTextDirection(); - // Now, we can select the heuristic int textDir = getResolvedTextDirection(); switch (textDir) { @@ -11447,7 +11444,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * drawables depending on the layout direction. * * A call to the super method will be required from the subclasses implementation. - * */ protected void resolveDrawables() { // No need to resolve twice |
