public static ChildrenBrowserFragment newInstance(int folderTypeId) { ChildrenBrowserFragment bf = new ChildrenBrowserFragment(); ListingContext lc = new ListingContext(); lc.setSortProperty(DocumentFolderService.SORT_PROPERTY_NAME); lc.setIsSortAscending(true); Bundle b = createBundleArgs(folderTypeId); b.putAll(createBundleArgs(lc, LOAD_AUTO)); bf.setArguments(b); return bf; }
public static ChildrenBrowserFragment newInstanceById(String folderIdentifier) { ChildrenBrowserFragment bf = new ChildrenBrowserFragment(); ListingContext lc = new ListingContext(); lc.setSortProperty(DocumentFolderService.SORT_PROPERTY_NAME); lc.setIsSortAscending(true); Bundle b = createBundleArg(folderIdentifier); b.putBoolean(PARAM_IS_SHORTCUT, true); b.putAll(createBundleArgs(lc, LOAD_AUTO)); bf.setArguments(b); return bf; }
private static ChildrenBrowserFragment newInstance( Folder parentFolder, String pathFolder, Site site, boolean isShortcut) { ChildrenBrowserFragment bf = new ChildrenBrowserFragment(); ListingContext lc = new ListingContext(); lc.setSortProperty(DocumentFolderService.SORT_PROPERTY_NAME); lc.setIsSortAscending(true); Bundle b = createBundleArgs(parentFolder, pathFolder, site); b.putBoolean(PARAM_IS_SHORTCUT, isShortcut); b.putAll(createBundleArgs(lc, LOAD_AUTO)); bf.setArguments(b); return bf; }