Add toString to CallServiceDescriptor
Change-Id: I847dbd8cf965516ad45f91d2db5df19469e2a2f8
This commit is contained in:
@@ -22,6 +22,7 @@ import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.util.Log;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
@@ -123,6 +124,13 @@ public final class CallServiceDescriptor implements Parcelable {
|
||||
mNetworkType == descriptor.mNetworkType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format(Locale.US, "[%s, component: %s]",
|
||||
CallServiceDescriptor.class.getSimpleName(),
|
||||
mComponentName == null ? "null" : mComponentName.flattenToShortString());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param context {@link Context} to use for the construction of the {@link Builder}.
|
||||
* @return A new {@link Builder} instance.
|
||||
|
||||
Reference in New Issue
Block a user