@Override public void onComplete(boolean success) { if (!success) return; archiveAdapter.clear(); archiveAdapter.addTrips(fileController.listFiles()); archiveAdapter.sort(new FileComparator(fileController)); showEmptyLayoutIfNoTrips(); }
private void setupArchiveList() { archiveAdapter = new ArchiveListAdapter(this, fileController); archiveList = (ListView) findViewById(R.id.archiveList); archiveList.setAdapter(archiveAdapter); archiveAdapter.sort(new FileComparator(fileController)); quickActionMenu = new QuickActionMenu(this); setListItemListeners(); showEmptyLayoutIfNoTrips(); }