am bb6fda6a: Provide final callbacks before remove CustomContent (issue 11169651)

* commit 'bb6fda6ac3c4246b91cf66b28cdbc89c3d8a3e52':
  Provide final callbacks before remove CustomContent (issue 11169651)
This commit is contained in:
Adam Cohen
2013-10-10 13:34:34 -07:00
committed by Android Git Automerger
+6
View File
@@ -557,6 +557,12 @@ public class Workspace extends SmoothPagedView
mWorkspaceScreens.remove(CUSTOM_CONTENT_SCREEN_ID);
mScreenOrder.remove(CUSTOM_CONTENT_SCREEN_ID);
removeView(customScreen);
if (mCustomContentCallbacks != null) {
mCustomContentCallbacks.onScrollProgressChanged(0);
mCustomContentCallbacks.onHide();
}
mCustomContentCallbacks = null;
// Ensure that the current page and default page are maintained.