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

Commit 550df700 authored by George Mount's avatar George Mount
Browse files

Fixed log warning for calling doStart() twice.

Bug 36504927

The LoaderManager was performing a doStart() multiple times
and issued a warning and then returned without any problems.
This CL fixes the underlying problem of doStart() being
called multiple times so that the warning isn't logged.

Test: ran fragment cts tests
Change-Id: I4a43280fd581e08ccd911d8d05367e00382d694a
parent dddc8fd1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1670,8 +1670,7 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene
            if (!mCheckedForLoaderManager) {
                mCheckedForLoaderManager = true;
                mLoaderManager = mHost.getLoaderManager(mWho, mLoadersStarted, false);
            }
            if (mLoaderManager != null) {
            } else if (mLoaderManager != null) {
                mLoaderManager.doStart();
            }
        }