Disabling overscroll when folder has only one page

Change-Id: I3cc3964dba1af8d96822e46baf2dc9cfaee824ae
This commit is contained in:
Sunny Goyal
2015-03-26 13:38:27 -07:00
parent 28f4188bac
commit 2f0ec85acf
2 changed files with 3 additions and 1 deletions
@@ -485,10 +485,12 @@ public class FolderPagedView extends PagedView implements Folder.FolderContent {
mPageIndicator.setVisibility(View.VISIBLE);
mSortButton.setVisibility(View.VISIBLE);
mFolder.mFolderName.setGravity(Gravity.START);
setEnableOverscroll(true);
} else {
mPageIndicator.setVisibility(View.GONE);
mSortButton.setVisibility(View.GONE);
mFolder.mFolderName.setGravity(Gravity.CENTER_HORIZONTAL);
setEnableOverscroll(false);
}
}
+1 -1
View File
@@ -1702,7 +1702,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
setEnableOverscroll(!freeScroll);
}
private void setEnableOverscroll(boolean enable) {
protected void setEnableOverscroll(boolean enable) {
mAllowOverScroll = enable;
}