Improve logging in BluetoothHeadsetClientCall. am: 3c67873f0a am: 180dd72a9b
am: a83d518689
* commit 'a83d5186898c49888f9b3c1d2ef2333d297d8449':
Improve logging in BluetoothHeadsetClientCall.
This commit is contained in:
@@ -172,8 +172,12 @@ public final class BluetoothHeadsetClientCall implements Parcelable {
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return toString(false);
|
||||
}
|
||||
|
||||
public String toString(boolean loggable) {
|
||||
StringBuilder builder = new StringBuilder("BluetoothHeadsetClientCall{mDevice: ");
|
||||
builder.append(mDevice);
|
||||
builder.append(loggable ? mDevice.hashCode() : mDevice);
|
||||
builder.append(", mId: ");
|
||||
builder.append(mId);
|
||||
builder.append(", mState: ");
|
||||
@@ -189,7 +193,7 @@ public final class BluetoothHeadsetClientCall implements Parcelable {
|
||||
default: builder.append(mState); break;
|
||||
}
|
||||
builder.append(", mNumber: ");
|
||||
builder.append(mNumber);
|
||||
builder.append(loggable ? mNumber.hashCode() : mNumber);
|
||||
builder.append(", mMultiParty: ");
|
||||
builder.append(mMultiParty);
|
||||
builder.append(", mOutgoing: ");
|
||||
|
||||
Reference in New Issue
Block a user