diff options
| author | Fabrice Di Meglio <fdimeglio@google.com> | 2013-04-12 00:46:07 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-04-12 00:46:07 +0000 |
| commit | bd286426fae833ddbef0646b267e2a31eee4939b (patch) | |
| tree | 5deb7c7fa28101271495f046d9ad5a6f17bc1805 /core/java | |
| parent | 77216642884d5131290803776b0fce4d68128e97 (diff) | |
| parent | cd5af79bf96912f996397d0c06ceb02d11390238 (diff) | |
Merge "Fix bug #8599905 Add simple BidiFormatter getInstance() helper API" into jb-mr2-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/text/bidi/BidiFormatter.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/text/bidi/BidiFormatter.java b/core/java/android/text/bidi/BidiFormatter.java index c5a77a6f90e6..7a08213c5280 100644 --- a/core/java/android/text/bidi/BidiFormatter.java +++ b/core/java/android/text/bidi/BidiFormatter.java @@ -273,6 +273,14 @@ public final class BidiFormatter { private final TextDirectionHeuristic mDefaultTextDirectionHeuristic; /** + * Factory for creating an instance of BidiFormatter for the default locale directionality. + * + */ + public static BidiFormatter getInstance() { + return new Builder().build(); + } + + /** * Factory for creating an instance of BidiFormatter given the context directionality. * * @param rtlContext Whether the context directionality is RTL. |
