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

Commit d5395532 authored by Varun Shah's avatar Varun Shah
Browse files

Update mTransport check before trying to configure.

Line was too long in previous commit so just updating that fix and
cleaning it up.

Bug: 139554125
Test: atest android.content.ContentProviderTest
Change-Id: Ie63151db35cc47f691b5a4733409c10b1ac4299c
parent 72d6d459
Loading
Loading
Loading
Loading
+7 −6
Original line number Original line Diff line number Diff line
@@ -1033,14 +1033,15 @@ 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 (mTransport == null) {
            return;
        }
        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.