protected void pickTags() { CharSequence[] tags = new CharSequence[DreamDroid.getTags().size()]; boolean[] selectedTags = new boolean[DreamDroid.getTags().size()]; int tc = 0; for (String tag : DreamDroid.getTags()) { tags[tc] = tag; selectedTags[tc] = mSelectedTags.contains(tag); tc++; } mTagsChanged = false; MultiChoiceDialog f = MultiChoiceDialog.newInstance( R.string.choose_tags, tags, selectedTags, R.string.ok, R.string.cancel); getMultiPaneHandler().showDialogFragment(f, "dialog_select_tags"); }
protected void pickRepeatings() { CharSequence[] days = getResources().getTextArray(R.array.weekdays); MultiChoiceDialog f = MultiChoiceDialog.newInstance(R.string.choose_days, days, mCheckedDays); getMultiPaneHandler().showDialogFragment(f, "dialog_select_repeatings"); }