private ArrayList<Integer> mReminderValues;
private ArrayList<String> mReminderLabels;
- // This is to keep track of whether or not multiple calendars have the same display name
- private static HashMap<String,Boolean> mIsDuplicateName = new HashMap<String,Boolean>();
-
private Time mStartTime;
private Time mEndTime;
private int mModification = MODIFY_UNINITIALIZED;
TextView accountName = (TextView) view.findViewById(R.id.account_name);
if(accountName != null) {
- if (mIsDuplicateName.containsKey(displayName)
- && mIsDuplicateName.get(displayName)) {
- accountName.setText(cursor.getString(CALENDARS_INDEX_OWNER_ACCOUNT));
- accountName.setVisibility(TextView.VISIBLE);
- } else {
- accountName.setVisibility(TextView.GONE);
- }
+ accountName.setText(cursor.getString(CALENDARS_INDEX_OWNER_ACCOUNT));
+ accountName.setVisibility(TextView.VISIBLE);
}
}
}
return;
}
- Utils.checkForDuplicateNames(mIsDuplicateName, cursor,
- CALENDARS_INDEX_DISPLAY_NAME);
-
int defaultCalendarPosition = findDefaultCalendarPosition(mCalendarsCursor);
// populate the calendars spinner