| Index: base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| diff --git a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| index a4d8e0b570deda416294068f8632462bd54dd299..2af146b523c76d50bf07c09bf43c93335f9fd23b 100644
|
| --- a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| +++ b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| @@ -85,7 +85,7 @@ public class ApiCompatibilityUtils {
|
| }
|
|
|
| /**
|
| - * @see android.view.View#setTextDirection(int)
|
| + * @see android.view.View#setTextAlignment(int)
|
| */
|
| public static void setTextAlignment(View view, int textAlignment) {
|
| if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
|
| @@ -96,6 +96,17 @@ public class ApiCompatibilityUtils {
|
| }
|
|
|
| /**
|
| + * @see android.view.View#setTextDirection(int)
|
| + */
|
| + public static void setTextDirection(View view, int textDirection) {
|
| + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
|
| + view.setTextDirection(textDirection);
|
| + } else {
|
| + // Do nothing. RTL text isn't supported before JB MR1.
|
| + }
|
| + }
|
| +
|
| + /**
|
| * @see android.view.ViewGroup.MarginLayoutParams#setMarginEnd(int)
|
| */
|
| public static void setMarginEnd(MarginLayoutParams layoutParams, int end) {
|
|
|