am 22aa3813: Pending bind callbacks should be cleared before starting the loader, similar to startBinding

* commit '22aa3813f818e46a096fef6490db2a60f2617eb7':
  Pending bind callbacks should be cleared before starting the loader, similar to startBinding
This commit is contained in:
Sunny Goyal
2015-08-27 17:09:02 +00:00
committed by Android Git Automerger
+6
View File
@@ -976,6 +976,12 @@ public class Launcher extends Activity
mPaused = false;
if (mRestoring || mOnResumeNeedsLoad) {
setWorkspaceLoading(true);
// If we're starting binding all over again, clear any bind calls we'd postponed in
// the past (see waitUntilResume) -- we don't need them since we're starting binding
// from scratch again
mBindOnResumeCallbacks.clear();
mModel.startLoader(PagedView.INVALID_RESTORE_PAGE);
mRestoring = false;
mOnResumeNeedsLoad = false;