Merge "Rename TextClassificationSessionId.flattenToString() to getValue()" into rvc-dev

This commit is contained in:
Tony Mak
2020-03-04 16:08:03 +00:00
committed by Android (Google) Code Review
3 changed files with 4 additions and 6 deletions

View File

@@ -57548,7 +57548,7 @@ package android.view.textclassifier {
public final class TextClassificationSessionId implements android.os.Parcelable { public final class TextClassificationSessionId implements android.os.Parcelable {
method public int describeContents(); method public int describeContents();
method @NonNull public String flattenToString(); method @NonNull public String getValue();
method public void writeToParcel(android.os.Parcel, int); method public void writeToParcel(android.os.Parcel, int);
field @NonNull public static final android.os.Parcelable.Creator<android.view.textclassifier.TextClassificationSessionId> CREATOR; field @NonNull public static final android.os.Parcelable.Creator<android.view.textclassifier.TextClassificationSessionId> CREATOR;
} }

View File

@@ -90,7 +90,7 @@ public final class SelectionSessionLogger {
.addTaggedData(SMART_END, event.getSmartEnd()); .addTaggedData(SMART_END, event.getSmartEnd());
} }
if (event.getSessionId() != null) { if (event.getSessionId() != null) {
log.addTaggedData(SESSION_ID, event.getSessionId().flattenToString()); log.addTaggedData(SESSION_ID, event.getSessionId().getValue());
} }
mMetricsLogger.write(log); mMetricsLogger.write(log);
debugLog(log); debugLog(log);

View File

@@ -92,12 +92,10 @@ public final class TextClassificationSessionId implements Parcelable {
} }
/** /**
* Flattens this id to a string. * Returns the value of this ID.
*
* @return The flattened id.
*/ */
@NonNull @NonNull
public String flattenToString() { public String getValue() {
return mValue; return mValue;
} }