/** * Inform the loader that a fragment has now finished loading. */ void fragmentHasLoaded(int fragment) { logFragmentLoaded(fragment); if (fragment < pendingDownloadErrorHandlers.length) { pendingDownloadErrorHandlers[fragment] = null; } /** * It is possible for a fragment to be preloaded by the linker or server before runAsync() has * requested it, in this case the leftovers fragment will be have it's onLoad() called before * remainingInitialFragments has been initialized. */ if (isInitial(fragment) && remainingInitialFragments != null) { assert (fragment == remainingInitialFragments.peek()); remainingInitialFragments.remove(); } assert (fragment == fragmentLoading); fragmentLoading = -1; assert !isLoaded[fragment]; isLoaded[fragment] = true; startLoadingNextFragment(); }
/** * Inform the loader that a fragment has now finished loading. */ void fragmentHasLoaded(int fragment) { logFragmentLoaded(fragment); if (fragment < pendingDownloadErrorHandlers.length) { pendingDownloadErrorHandlers[fragment] = null; } if (isInitial(fragment)) { assert (fragment == remainingInitialFragments.peek()); remainingInitialFragments.remove(); } assert (fragment == fragmentLoading); fragmentLoading = -1; assert !isLoaded[fragment]; isLoaded[fragment] = true; startLoadingNextFragment(); }
/** * Inform the loader that a fragment has now finished loading. */ void fragmentHasLoaded(int fragment) { logFragmentLoaded(fragment); if (fragment < pendingDownloadErrorHandlers.length) { pendingDownloadErrorHandlers[fragment] = null; } if (isInitial(fragment)) { assert (fragment == remainingInitialFragments.peek()); remainingInitialFragments.remove(); } assert (fragment == fragmentLoading); fragmentLoading = -1; assert !isLoaded[fragment]; isLoaded[fragment] = true; startLoadingNextFragment(); }