Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3330ae59 authored by Fabrice Di Meglio's avatar Fabrice Di Meglio Committed by Android (Google) Code Review
Browse files

Merge "Improve Toast RTL support" into jb-mr1-dev

parents 859a62ce bf0bc63d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -376,8 +376,8 @@ public class Toast {
                mWM = WindowManagerImpl.getDefault();
                // We can resolve the Gravity here by using the Locale for getting
                // the layout direction
                final int layoutDirection = LocaleUtil.getLayoutDirectionFromLocale(
                        Locale.getDefault());
                final Locale locale = mView.getContext().getResources().getConfiguration().locale;
                final int layoutDirection = LocaleUtil.getLayoutDirectionFromLocale(locale);
                final int gravity = Gravity.getAbsoluteGravity(mGravity, layoutDirection);
                mParams.gravity = gravity;
                if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) {