コード例 #1
0
  @Override
  public void onComplete(boolean success) {
    if (!success) return;

    archiveAdapter.clear();
    archiveAdapter.addTrips(fileController.listFiles());
    archiveAdapter.sort(new FileComparator(fileController));

    showEmptyLayoutIfNoTrips();
  }
コード例 #2
0
  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();
  }