Cleaning up dead code.

Change-Id: I922e20b41d19ca9936c75277ba7c58a291d297fa
This commit is contained in:
Winson Chung
2011-06-23 13:04:10 -07:00
parent 845149a05a
commit 4e076545e4
37 changed files with 28 additions and 6144 deletions
+4 -4
View File
@@ -166,7 +166,7 @@ public abstract class PagedView extends ViewGroup {
private static final int sScrollIndicatorFadeOutDuration = 650;
// If set, will defer loading associated pages until the scrolling settles
private boolean mDeferLoadAssociatedPagesAfterScroll;
private boolean mDeferLoadAssociatedPagesUntilScrollCompletes;
public interface PageSwitchListener {
void onPageSwitch(View newPage, int newPageIndex);
@@ -375,9 +375,9 @@ public abstract class PagedView extends ViewGroup {
notifyPageSwitchListener();
// Load the associated pages if necessary
if (mDeferLoadAssociatedPagesAfterScroll) {
if (mDeferLoadAssociatedPagesUntilScrollCompletes) {
loadAssociatedPages(mCurrentPage);
mDeferLoadAssociatedPagesAfterScroll = false;
mDeferLoadAssociatedPagesUntilScrollCompletes = false;
}
// We don't want to trigger a page end moving unless the page has settled
@@ -1390,7 +1390,7 @@ public abstract class PagedView extends ViewGroup {
if (mDeferScrollUpdate) {
loadAssociatedPages(mNextPage);
} else {
mDeferLoadAssociatedPagesAfterScroll = true;
mDeferLoadAssociatedPagesUntilScrollCompletes = true;
}
notifyPageSwitchListener();
invalidate();