summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2010-04-08 17:18:35 -0700
committerXavier Ducrohet <xav@android.com>2010-04-08 17:18:35 -0700
commitc56653bff10ef7f1a80127c9649ed0b2c6ae1b2e (patch)
treebf5aec293fa9e6d16f77132e8ff4f5c45fe8b97e /tools/layoutlib
parentc9b6851af68bdc20c4903b16c344e9f116647219 (diff)
downloadframeworks_base-c56653bff10ef7f1a80127c9649ed0b2c6ae1b2e.zip
frameworks_base-c56653bff10ef7f1a80127c9649ed0b2c6ae1b2e.tar.gz
frameworks_base-c56653bff10ef7f1a80127c9649ed0b2c6ae1b2e.tar.bz2
Adds back the finalize method on the replaced Paint class.
without it com.android.layoutlib.bridge.TestClassReplacement fails. Change-Id: Iafb6548f45c31e901591a45239224895c4403be8
Diffstat (limited to 'tools/layoutlib')
-rw-r--r--tools/layoutlib/bridge/src/android/graphics/Paint.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/layoutlib/bridge/src/android/graphics/Paint.java b/tools/layoutlib/bridge/src/android/graphics/Paint.java
index e4f9794..619ab30 100644
--- a/tools/layoutlib/bridge/src/android/graphics/Paint.java
+++ b/tools/layoutlib/bridge/src/android/graphics/Paint.java
@@ -208,6 +208,12 @@ public class Paint extends _Original_Paint {
this(0);
}
+ /*
+ * Do not remove or com.android.layoutlib.bridge.TestClassReplacement fails.
+ */
+ @Override
+ public void finalize() { }
+
public Paint(int flags) {
setFlags(flags | DEFAULT_PAINT_FLAGS);
initFont();