Provide final callbacks before remove CustomContent (issue 11169651)

Change-Id: I0c30d58a4380f4525dcabf54a0cabf3789031ba6
This commit is contained in:
Adam Cohen
2013-10-10 12:48:52 -07:00
parent 21cd002fef
commit bb6fda6ac3
+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.