From 60ce4121e70e576af92b4b65e4414c662ea3db11 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Thu, 14 Jul 2011 14:04:51 -0700 Subject: [PATCH] Fix for text, and fix for refresh updates on new list sad --- .../com/todoroo/astrid/actfm/TagViewActivity.java | 13 +++++++++---- astrid/res/values/strings-core.xml | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewActivity.java b/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewActivity.java index 5ce377114..e2275acb0 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewActivity.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewActivity.java @@ -122,6 +122,8 @@ public class TagViewActivity extends TaskListActivity implements OnTabChangeList private boolean dataLoaded = false; + private boolean updatesTabAdded = false; + // --- UI initialization @@ -302,9 +304,6 @@ public class TagViewActivity extends TaskListActivity implements OnTabChangeList } protected void setUpUpdateList() { - if(actFmPreferenceService.isLoggedIn() && tagData.getValue(Task.REMOTE_ID) > 0) - addTab(R.id.tab_updates, "updates", tabLabels[1]); //$NON-NLS-1$ - final ImageButton quickAddButton = (ImageButton) findViewById(R.id.commentButton); addCommentField = (EditText) findViewById(R.id.commentField); addCommentField.setOnEditorActionListener(new OnEditorActionListener() { @@ -392,8 +391,14 @@ public class TagViewActivity extends TaskListActivity implements OnTabChangeList } private void refreshUpdatesList() { - if(tagData.getValue(TagData.REMOTE_ID) == 0) + if(!actFmPreferenceService.isLoggedIn() || tagData.getValue(Task.REMOTE_ID) <= 0) return; + + if(!updatesTabAdded ) { + updatesTabAdded = true; + addTab(R.id.tab_updates, "updates", tabLabels[1]); //$NON-NLS-1$ + } + if(updateAdapter == null) { TodorooCursor currentCursor = tagDataService.getUpdates(tagData); startManagingCursor(currentCursor); diff --git a/astrid/res/values/strings-core.xml b/astrid/res/values/strings-core.xml index 2342827f8..384690228 100644 --- a/astrid/res/values/strings-core.xml +++ b/astrid/res/values/strings-core.xml @@ -298,7 +298,7 @@ No Deadline - Specific Day/Time + Specific Day Today Tomorrow (day after)