summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2018-10-31 06:40:59 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-10-31 06:40:59 +0000
commit60a4504796e3b052d702cc38b982b49503d8ca8c (patch)
treecd25c2bee0f97fc55fc29432dee7d47ecc234023
parenta38e450b3733632c94e3bb1da31d445280eac5de (diff)
parent3bef4908b2d9392d8bae6900bd236c4be77f0323 (diff)
Merge "Move MeasuredText.sRegistry to Builder"
-rw-r--r--graphics/java/android/graphics/text/MeasuredText.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/java/android/graphics/text/MeasuredText.java b/graphics/java/android/graphics/text/MeasuredText.java
index 3efe655b2565..6f786517ba12 100644
--- a/graphics/java/android/graphics/text/MeasuredText.java
+++ b/graphics/java/android/graphics/text/MeasuredText.java
@@ -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;