Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for filtering done entries out of calendar.

  • Loading branch information...
commit 00d99945bb41ea20997481f49590c0da973fb525 1 parent f103086
@hdweiss hdweiss authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/com/matburt/mobileorg/Services/CalendarSyncService.java
View
4 src/com/matburt/mobileorg/Services/CalendarSyncService.java
@@ -11,6 +11,7 @@
import android.database.Cursor;
import android.os.IBinder;
import android.preference.PreferenceManager;
+import android.text.TextUtils;
import android.util.Log;
import com.matburt.mobileorg.OrgData.CalendarEntriesParser;
@@ -184,7 +185,7 @@ private void tryToInsertNode(MultiMap<CalendarEntry> entries,
private boolean shouldInsertEntry(String todo, OrgNodeDate date) {
boolean isTodoActive = true;
- if (allTodos.contains(todo))
+ if (TextUtils.isEmpty(todo) == false && allTodos.contains(todo))
isTodoActive = this.activeTodos.contains(todo);
if (this.showDone == false && isTodoActive == false)
@@ -264,7 +265,6 @@ private void refreshPreferences() {
this.activeTodos = new HashSet<String>(
OrgProviderUtils.getActiveTodos(resolver));
this.allTodos = new HashSet<String>(OrgProviderUtils.getTodos(resolver));
- this.allTodos.remove("");
this.calendarWrapper.refreshPreferences();
}
Please sign in to comment.
Something went wrong with that request. Please try again.