Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c56653bf authored by Xavier Ducrohet's avatar Xavier Ducrohet
Browse files

Adds back the finalize method on the replaced Paint class.

without it com.android.layoutlib.bridge.TestClassReplacement fails.

Change-Id: Iafb6548f45c31e901591a45239224895c4403be8
parent c9b6851a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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();