Fix the layoutlib Paint.set(Paint) method.
It would change the text rendering info but not recompute the Java Font objects. The effect is a broken font rendering in the EditText (which use this method to copy some Paint object before using the copy for the actual drawing) Change-Id: I6d8d1bf86f0d77d088f60ad81c71dd3ebab727b0
This commit is contained in:
@@ -283,6 +283,8 @@ public class Paint extends _Original_Paint {
|
||||
mStyle = src.mStyle;
|
||||
mFlags = src.mFlags;
|
||||
|
||||
updateFontObject();
|
||||
|
||||
super.set(src);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user