diff options
| -rw-r--r-- | core/java/android/widget/Editor.java | 3 | ||||
| -rw-r--r-- | core/java/android/widget/TextView.java | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java index 69591371aa35..3f5ad66e1115 100644 --- a/core/java/android/widget/Editor.java +++ b/core/java/android/widget/Editor.java @@ -926,7 +926,8 @@ public class Editor { } void onLocaleChanged() { - // Will be re-created on demand in getWordIterator with the proper new locale + // Will be re-created on demand in getWordIterator and getWordIteratorWithText with the + // proper new locale mWordIterator = null; mWordIteratorWithText = null; } diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 4c461adc82e9..0ce4a122d2ee 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -8923,8 +8923,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } void onLocaleChanged() { - // Will be re-created on demand in getWordIterator with the proper new locale - mEditor.mWordIterator = null; + mEditor.onLocaleChanged(); } /** |