Removing some unused code path
Change-Id: I16a651d77c6557b33f8389407a222f058a8168d4
This commit is contained in:
1 parent
6c870f2942
commit
6bb51f425b
5 files changed
+11
-116
No files matched your search
@@ -55,8 +55,6 @@ public class FolderPagedView extends PagedView {
|
||||
|
||||
private static final String TAG = "FolderPagedView";
|
||||
|
||||
private static final boolean ALLOW_FOLDER_SCROLL = true;
|
||||
|
||||
private static final int REORDER_ANIMATION_DURATION = 230;
|
||||
private static final int START_VIEW_REORDER_DELAY = 30;
|
||||
private static final float VIEW_REORDER_DELAY_FACTOR = 0.9f;
|
||||
@@ -183,21 +181,13 @@ public class FolderPagedView extends PagedView {
|
||||
|
||||
/**
|
||||
* Binds items to the layout.
|
||||
* @return list of items that could not be bound, probably because we hit the max size limit.
|
||||
*/
|
||||
public ArrayList<ShortcutInfo> bindItems(ArrayList<ShortcutInfo> items) {
|
||||
public void bindItems(ArrayList<ShortcutInfo> items) {
|
||||
ArrayList<View> icons = new ArrayList<>();
|
||||
ArrayList<ShortcutInfo> extra = new ArrayList<>();
|
||||
|
||||
for (ShortcutInfo item : items) {
|
||||
if (!ALLOW_FOLDER_SCROLL && icons.size() >= mMaxItemsPerPage) {
|
||||
extra.add(item);
|
||||
} else {
|
||||
icons.add(createNewView(item));
|
||||
}
|
||||
icons.add(createNewView(item));
|
||||
}
|
||||
arrangeChildren(icons, icons.size(), false);
|
||||
return extra;
|
||||
}
|
||||
|
||||
public void allocateSpaceForRank(int rank) {
|
||||
@@ -431,10 +421,6 @@ public class FolderPagedView extends PagedView {
|
||||
pageIndex * mMaxItemsPerPage + sTmpArray[1] * mGridCountX + sTmpArray[0]);
|
||||
}
|
||||
|
||||
public boolean isFull() {
|
||||
return !ALLOW_FOLDER_SCROLL && getItemCount() >= mMaxItemsPerPage;
|
||||
}
|
||||
|
||||
public View getFirstItem() {
|
||||
if (getChildCount() < 1) {
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user