summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge/src
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2010-07-16 16:46:39 -0700
committerXavier Ducrohet <xav@android.com>2010-07-19 10:19:49 -0700
commit80e62ac61c297452c003919f71c4dcd7063d1b43 (patch)
treec52a239cc44e248ef0543b69289ade2cc64ca80b /tools/layoutlib/bridge/src
parent7203272f35e40bf9d4b76f1b2f9b0077738df118 (diff)
downloadframeworks_base-80e62ac61c297452c003919f71c4dcd7063d1b43.zip
frameworks_base-80e62ac61c297452c003919f71c4dcd7063d1b43.tar.gz
frameworks_base-80e62ac61c297452c003919f71c4dcd7063d1b43.tar.bz2
Fix the layoutlib Paint.set(Paint) method. Do not merge.
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: I9e7fbf9bd57b421fd793876a6de4ade1ecac372d
Diffstat (limited to 'tools/layoutlib/bridge/src')
-rw-r--r--tools/layoutlib/bridge/src/android/graphics/Paint.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/layoutlib/bridge/src/android/graphics/Paint.java b/tools/layoutlib/bridge/src/android/graphics/Paint.java
index 619ab30..d13b5fe 100644
--- a/tools/layoutlib/bridge/src/android/graphics/Paint.java
+++ b/tools/layoutlib/bridge/src/android/graphics/Paint.java
@@ -283,6 +283,8 @@ public class Paint extends _Original_Paint {
mStyle = src.mStyle;
mFlags = src.mFlags;
+ updateFontObject();
+
super.set(src);
}
}