Skip to content

Commit 87228cd

Browse files
Fabrice Di MeglioAndroid (Google) Code Review
authored andcommitted
Merge "Fix bug #5446966 Changing Gravity on a TextView does not change how the text is aligned" into ics-mr0
2 parents f289465 + 9f51384 commit 87228cd

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)