Skip to content

Commit 9f51384

Browse files
author
Fabrice Di Meglio
committed
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
1 parent 35af363 commit 9f51384

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/java/android/widget/TextView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2476,6 +2476,7 @@ public void setGravity(int gravity) {
24762476

24772477
if (gravity != mGravity) {
24782478
invalidate();
2479+
mLayoutAlignment = null;
24792480
}
24802481

24812482
mGravity = gravity;

0 commit comments

Comments
 (0)