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

Commit 60a45047 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Move MeasuredText.sRegistry to Builder"

parents a38e450b 3bef4908
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -48,9 +48,6 @@ import libcore.util.NativeAllocationRegistry;
 * </p>
 */
public class MeasuredText {
    private static final NativeAllocationRegistry sRegistry = new NativeAllocationRegistry(
            MeasuredText.class.getClassLoader(), nGetReleaseFunc(), 1024);

    private long mNativePtr;
    private @NonNull char[] mChars;

@@ -166,6 +163,9 @@ public class MeasuredText {
     * Note: The appendStyle and appendReplacementRun should be called to cover the text length.
     */
    public static class Builder {
        private static final NativeAllocationRegistry sRegistry = new NativeAllocationRegistry(
                MeasuredText.class.getClassLoader(), nGetReleaseFunc(), 1024);

        private long mNativePtr;

        private final @NonNull char[] mText;