diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2012-06-15 20:16:41 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2012-08-23 14:55:33 -0700 |
commit | 5f7979993979466c79ab4f38d83c6f2aca361662 (patch) | |
tree | 90c8b098b3c9a53a90c039641b0b7ba379d6b4eb /core/java/android/widget | |
parent | 5e8e41e41aecd2a4951659a1f3507f3371e0cc47 (diff) | |
download | frameworks_base-5f7979993979466c79ab4f38d83c6f2aca361662.zip frameworks_base-5f7979993979466c79ab4f38d83c6f2aca361662.tar.gz frameworks_base-5f7979993979466c79ab4f38d83c6f2aca361662.tar.bz2 |
Add support for "-rtl" in resources
- fix bug #7035019 Need to have "-rtl" support for Resource
Change-Id: Ic82145c2ac672729d8a6c695a5f343276a1a0a2c
Diffstat (limited to 'core/java/android/widget')
-rw-r--r-- | core/java/android/widget/Toast.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/Toast.java b/core/java/android/widget/Toast.java index 053ade7..8df160a 100644 --- a/core/java/android/widget/Toast.java +++ b/core/java/android/widget/Toast.java @@ -374,7 +374,7 @@ public class Toast { // We can resolve the Gravity here by using the Locale for getting // the layout direction final Configuration config = mView.getContext().getResources().getConfiguration(); - final int gravity = Gravity.getAbsoluteGravity(mGravity, config.layoutDirection); + final int gravity = Gravity.getAbsoluteGravity(mGravity, config.getLayoutDirection()); mParams.gravity = gravity; if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) { mParams.horizontalWeight = 1.0f; |