Merge "Move MeasuredText.sRegistry to Builder"
This commit is contained in:
committed by
Android (Google) Code Review
commit
60a4504796
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user