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

Commit 316a6177 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Check for mTransport before trying to configure.

Bug: 139554125
Test: atest FrameworksCoreTests:android.content.ContentProviderTest
Change-Id: I4a2d78de257cb898b75543dcbfde4b6317b3393f
parent 3cd1e48e
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1030,12 +1030,14 @@ 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;
            }
        }
    }

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