From aa00f74419a5400fb7518476c62474ed665a67ae Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 14 Jun 2012 17:32:30 -0700 Subject: [PATCH] Don't show the currently logged in user in the peopel view --- .../com/todoroo/astrid/people/PeopleFilterExposer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/astrid/plugin-src/com/todoroo/astrid/people/PeopleFilterExposer.java b/astrid/plugin-src/com/todoroo/astrid/people/PeopleFilterExposer.java index 472a72aec..373c4ee3a 100644 --- a/astrid/plugin-src/com/todoroo/astrid/people/PeopleFilterExposer.java +++ b/astrid/plugin-src/com/todoroo/astrid/people/PeopleFilterExposer.java @@ -25,6 +25,7 @@ import com.todoroo.andlib.sql.Order; import com.todoroo.andlib.sql.Query; import com.todoroo.andlib.sql.QueryTemplate; import com.todoroo.andlib.utility.AndroidUtilities; +import com.todoroo.astrid.actfm.sync.ActFmPreferenceService; import com.todoroo.astrid.actfm.sync.ActFmSyncService; import com.todoroo.astrid.api.AstridApiConstants; import com.todoroo.astrid.api.Filter; @@ -60,6 +61,8 @@ public class PeopleFilterExposer extends BroadcastReceiver { User user = new User(); for (users.moveToFirst(); !users.isAfterLast(); users.moveToNext()) { user.readFromCursor(users); + if (user.getValue(User.REMOTE_ID) == ActFmPreferenceService.userId()) + continue; Filter currFilter = filterFromUserData(user); if (currFilter != null) items.add(currFilter);