Merge "Update mTransport check before trying to configure."

This commit is contained in:
Varun Shah
2019-08-27 16:55:06 +00:00
committed by Android (Google) Code Review

View File

@@ -1033,12 +1033,13 @@ public abstract class ContentProvider implements ContentInterface, ComponentCall
/** @hide */
public final void setTransportLoggingEnabled(boolean enabled) {
if (mTransport != null) {
if (enabled) {
mTransport.mInterface = new LoggingContentInterface(getClass().getSimpleName(), this);
} else {
mTransport.mInterface = this;
}
if (mTransport == null) {
return;
}
if (enabled) {
mTransport.mInterface = new LoggingContentInterface(getClass().getSimpleName(), this);
} else {
mTransport.mInterface = this;
}
}