diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2013-04-11 17:48:39 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-04-11 17:48:39 -0700 |
commit | 4febbf35011ecb30796c78cf3e159ef781564f45 (patch) | |
tree | 90a9088d2bc117fe660ed1000b4d30441e6af9ad /core | |
parent | d9d9c17dda9a343b8b5386d1b9233c89ab6f3419 (diff) | |
parent | bd286426fae833ddbef0646b267e2a31eee4939b (diff) | |
download | frameworks_base-4febbf35011ecb30796c78cf3e159ef781564f45.zip frameworks_base-4febbf35011ecb30796c78cf3e159ef781564f45.tar.gz frameworks_base-4febbf35011ecb30796c78cf3e159ef781564f45.tar.bz2 |
am bd286426: Merge "Fix bug #8599905 Add simple BidiFormatter getInstance() helper API" into jb-mr2-dev
* commit 'bd286426fae833ddbef0646b267e2a31eee4939b':
Fix bug #8599905 Add simple BidiFormatter getInstance() helper API
Diffstat (limited to 'core')
-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 c5a77a6..7a08213 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. |