Skip to content

Commit cee057e

Browse files
Fabrice Di MeglioAndroid Git Automerger
authored andcommitted
am 87228cd: Merge "Fix bug #5446966 Changing Gravity on a TextView does not change how the text is aligned" into ics-mr0
* commit '87228cd7bb9a39e2bb33a767d214c8d834f840df': Fix bug #5446966 Changing Gravity on a TextView does not change how the text is aligned
2 parents 75c0053 + 87228cd commit cee057e

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)