summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2013-04-11 17:48:39 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-11 17:48:39 -0700
commit4febbf35011ecb30796c78cf3e159ef781564f45 (patch)
tree90a9088d2bc117fe660ed1000b4d30441e6af9ad /core
parentd9d9c17dda9a343b8b5386d1b9233c89ab6f3419 (diff)
parentbd286426fae833ddbef0646b267e2a31eee4939b (diff)
downloadframeworks_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.java8
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.