Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
Show all calendars if nothing has been saved yet
Browse files Browse the repository at this point in the history
  • Loading branch information
breber committed Jun 14, 2014
1 parent 37935f7 commit f55f12b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Agenda/Agenda/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.reber.agenda"
android:versionCode="28"
android:versionCode="29"
android:versionName="2.3.0">

<uses-permission android:name="android.permission.READ_CALENDAR" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,9 @@ public Set<org.reber.agenda.AndroidCalendar> getSelectedCalendarFromPref(String

Set<String> string = pref.getStringSet(Constants.CAL_PREFS, null);

if (string != null) {
for (AndroidCalendar c : getAvailableCalendars()) {
if (string.contains(c.getId())) {
calsFromPref.add(c);
}
for (AndroidCalendar c : getAvailableCalendars()) {
if (string == null || string.contains(c.getId())) {
calsFromPref.add(c);
}
}

Expand Down

0 comments on commit f55f12b

Please sign in to comment.