/** * Gets the customizable {@link RepositorySourceProvider}. Can be null if there's a problem * with the user's environment. */ @Nullable public LocalSourceProvider getUserSourceProvider(@NonNull ProgressIndicator progress) { if (mUserSourceProvider == null && mAndroidFolder != null) { mUserSourceProvider = RepoConfig.createUserSourceProvider(mFop, mAndroidFolder); synchronized (MANAGER_LOCK) { if (mRepoManager != null) { // If the repo already exists cause it to be reloaded, so the userSourceProvider // can be added to the config. mRepoManager = null; getSdkManager(progress); } } } return mUserSourceProvider; }