summaryrefslogtreecommitdiff
path: root/core/java/android/text/TextLine.java
diff options
context:
space:
mode:
authorHaoyu Zhang <haoyuchang@google.com>2019-02-06 13:51:58 -0800
committerHaoyu Zhang <haoyuchang@google.com>2019-02-06 13:51:58 -0800
commit97b1d50f825f56e7e24dade8489b6c2acf598eb2 (patch)
tree02c1933f093259f07d05c41772434beea4ec8ee6 /core/java/android/text/TextLine.java
parentf014d01cdd93a35e10a2aae99d9b631dd108049c (diff)
Add maxTargetSDK equals P for UnsupportedAppUsage of sCached
We figured out this non-SDK API is mainly used for a previous memory workaround. Since the bug was fixed, this API is not allowed to access. Bug: 123768439 Test: N/A Change-Id: Ib04bf7e630aee0896c8432aa9c5b794440ea7a2d
Diffstat (limited to 'core/java/android/text/TextLine.java')
-rw-r--r--core/java/android/text/TextLine.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/text/TextLine.java b/core/java/android/text/TextLine.java
index 949328fd3a99..915a18e59226 100644
--- a/core/java/android/text/TextLine.java
+++ b/core/java/android/text/TextLine.java
@@ -94,7 +94,8 @@ public class TextLine {
private final DecorationInfo mDecorationInfo = new DecorationInfo();
private final ArrayList<DecorationInfo> mDecorations = new ArrayList<>();
- @UnsupportedAppUsage
+ /** Not allowed to access. If it's for memory leak workaround, it was already fixed M. */
+ @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
private static final TextLine[] sCached = new TextLine[3];
/**