Merge "Rename TextClassificationSessionId.flattenToString() to getValue()" into rvc-dev
This commit is contained in:
@@ -57548,7 +57548,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<android.view.textclassifier.TextClassificationSessionId> CREATOR;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user