コード例 #1
0
  private void setupFileList(OrgQueryBuilder agenda) {
    ArrayList<String> filenames = OrgProviderUtils.getFilenames(getContentResolver());
    for (String filename : filenames) {
      CheckBox checkBox = new CheckBox(this);
      checkBox.setText(filename);
      checkBox.setChecked(agenda.files.contains(filename));

      fileListView.addView(checkBox);
    }
  }
コード例 #2
0
 private String getChangesString() {
   int changes = OrgProviderUtils.getChangesCount(getContentResolver());
   if (changes > 0) return "[" + changes + "]";
   else return "";
 }