Fix workspace outline alpha during scrolling

Change-Id: Ib4e20994b2256dad6607df9c4616f06c5a0b336e
This commit is contained in:
Adam Cohen
2010-11-24 16:26:58 -08:00
parent e0f66b5469
commit 73aa9755d3
+5 -1
View File
@@ -356,7 +356,11 @@ public abstract class PagedView extends ViewGroup {
mCurrentPage = Math.max(0, Math.min(mNextPage, getPageCount() - 1));
mNextPage = INVALID_PAGE;
notifyPageSwitchListener();
pageEndMoving();
// We don't want to trigger a page end moving unless the page has settled
// and the user has stopped scrolling
if (mTouchState == TOUCH_STATE_REST) {
pageEndMoving();
}
return true;
}
return false;