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

Commit 9f513847 authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

Fix bug #5446966 Changing Gravity on a TextView does not change how the text is aligned

- this was a regression introduced when dealing with getLayoutAlignment()

Change-Id: I9571a7976789b768c7cb41560d88b35d67ae3895
parent 35af3639
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2476,6 +2476,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener

        if (gravity != mGravity) {
            invalidate();
            mLayoutAlignment = null;
        }

        mGravity = gravity;