Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7585618d authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Check for mTransport before trying to configure."

parents 76007212 316a6177
Loading
Loading
Loading
Loading
+6 −4
Original line number Original line Diff line number Diff line
@@ -1033,12 +1033,14 @@ public abstract class ContentProvider implements ContentInterface, ComponentCall


    /** @hide */
    /** @hide */
    public final void setTransportLoggingEnabled(boolean enabled) {
    public final void setTransportLoggingEnabled(boolean enabled) {
        if (mTransport != null) {
            if (enabled) {
            if (enabled) {
                mTransport.mInterface = new LoggingContentInterface(getClass().getSimpleName(), this);
                mTransport.mInterface = new LoggingContentInterface(getClass().getSimpleName(), this);
            } else {
            } else {
                mTransport.mInterface = this;
                mTransport.mInterface = this;
            }
            }
        }
        }
    }


    /**
    /**
     * Implement this to initialize your content provider on startup.
     * Implement this to initialize your content provider on startup.