From 7835d9ec996b639a0fe22f03ffaa2bd3ae62bd32 Mon Sep 17 00:00:00 2001 From: Tony Mak Date: Fri, 28 Feb 2020 16:00:47 +0000 Subject: [PATCH] Rename TextClassificationSessionId.flattenToString() to getValue() Fixes: 149024971 Test: m update-api && m Change-Id: I94ba927cda8e7d25412e844a1c00e59671f6e4c4 --- api/current.txt | 2 +- .../android/view/textclassifier/SelectionSessionLogger.java | 2 +- .../view/textclassifier/TextClassificationSessionId.java | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/api/current.txt b/api/current.txt index 1227006dbe046..dcdb32a2827f9 100644 --- a/api/current.txt +++ b/api/current.txt @@ -57517,7 +57517,7 @@ package android.view.textclassifier { public final class TextClassificationSessionId implements android.os.Parcelable { method public int describeContents(); - method @NonNull public String flattenToString(); + method @NonNull public String getValue(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } diff --git a/core/java/android/view/textclassifier/SelectionSessionLogger.java b/core/java/android/view/textclassifier/SelectionSessionLogger.java index 9c9b2d0f1ce28..ae9f65ba61291 100644 --- a/core/java/android/view/textclassifier/SelectionSessionLogger.java +++ b/core/java/android/view/textclassifier/SelectionSessionLogger.java @@ -90,7 +90,7 @@ public final class SelectionSessionLogger { .addTaggedData(SMART_END, event.getSmartEnd()); } if (event.getSessionId() != null) { - log.addTaggedData(SESSION_ID, event.getSessionId().flattenToString()); + log.addTaggedData(SESSION_ID, event.getSessionId().getValue()); } mMetricsLogger.write(log); debugLog(log); diff --git a/core/java/android/view/textclassifier/TextClassificationSessionId.java b/core/java/android/view/textclassifier/TextClassificationSessionId.java index 0b6fba225280e..aa680c9b7bc8e 100644 --- a/core/java/android/view/textclassifier/TextClassificationSessionId.java +++ b/core/java/android/view/textclassifier/TextClassificationSessionId.java @@ -92,12 +92,10 @@ public final class TextClassificationSessionId implements Parcelable { } /** - * Flattens this id to a string. - * - * @return The flattened id. + * Returns the value of this ID. */ @NonNull - public String flattenToString() { + public String getValue() { return mValue; }