Adding sort switch in FolderPagedView
> Adding options column in DB to store generation purpose flags > Storing isSorted flag in FolderInfo > Adding a switch for A-Z sorting (only visible if pageCount > 1) > When in sorted mode, spring-load snaps to the target location for 1.5 seconds Change-Id: I8c7c778d2cc3ccbd35a2890a1a705e1c1a7e9a66
This commit is contained in:
@@ -133,7 +133,7 @@ public class FolderCellLayout extends CellLayout implements Folder.FolderContent
|
||||
}
|
||||
|
||||
@Override
|
||||
public int allocateNewLastItemRank() {
|
||||
public int allocateRankForNewItem(ShortcutInfo info) {
|
||||
int rank = getItemCount();
|
||||
mFolder.rearrangeChildren(rank + 1);
|
||||
return rank;
|
||||
|
||||
Reference in New Issue
Block a user