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

Commit 85c1765e authored by Fabrice Di Meglio's avatar Fabrice Di Meglio Committed by Android Git Automerger
Browse files

am 3330ae59: Merge "Improve Toast RTL support" into jb-mr1-dev

* commit '3330ae59':
  Improve Toast RTL support
parents 2ebfee16 3330ae59
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) {