Don't need the filter update text anymore--removed another query

pull/14/head
Sam Bosley 12 years ago
parent 4c128d4df6
commit 1be758d198

@ -109,8 +109,6 @@ public class TagFilterExposer extends BroadcastReceiver implements AstridFilterE
filter.customTaskList = new ComponentName(ContextManager.getContext(), fragmentClass);
if(tag.image != null)
filter.imageUrl = tag.image;
if(tag.updateText != null)
filter.updateText = tag.updateText;
Bundle extras = new Bundle();
extras.putString(TagViewFragment.EXTRA_TAG_NAME, tag.tag);
extras.putLong(TagViewFragment.EXTRA_TAG_REMOTE_ID, tag.remoteId);

@ -33,7 +33,6 @@ import com.todoroo.andlib.sql.Query;
import com.todoroo.andlib.sql.QueryTemplate;
import com.todoroo.andlib.utility.DateUtilities;
import com.todoroo.astrid.actfm.TagViewFragment;
import com.todoroo.astrid.actfm.sync.ActFmPreferenceService;
import com.todoroo.astrid.api.AstridApiConstants;
import com.todoroo.astrid.core.PluginServices;
import com.todoroo.astrid.dao.MetadataDao;
@ -43,7 +42,6 @@ import com.todoroo.astrid.data.Metadata;
import com.todoroo.astrid.data.TagData;
import com.todoroo.astrid.data.Task;
import com.todoroo.astrid.data.TaskApiDao;
import com.todoroo.astrid.data.Update;
import com.todoroo.astrid.service.MetadataService;
import com.todoroo.astrid.service.TagDataService;
import com.todoroo.astrid.service.TaskService;
@ -119,7 +117,6 @@ public final class TagService {
public int count;
public long remoteId;
public String image;
public String updateText;
public Tag(String tag, int count, long remoteId) {
this.tag = tag;
@ -337,10 +334,6 @@ public final class TagService {
if(TextUtils.isEmpty(tag.tag))
continue;
tags.put(tagName, tag);
Update update = tagDataService.getLatestUpdate(tagData);
if(update != null)
tag.updateText = ActFmPreferenceService.updateToString(update);
}
} finally {
cursor.close();

Loading…
Cancel
Save