Fix for text, and fix for refresh updates on new list sad

pull/14/head
Tim Su 15 years ago
parent 9818c52018
commit 60ce4121e7

@ -122,6 +122,8 @@ public class TagViewActivity extends TaskListActivity implements OnTabChangeList
private boolean dataLoaded = false; private boolean dataLoaded = false;
private boolean updatesTabAdded = false;
// --- UI initialization // --- UI initialization
@ -302,9 +304,6 @@ public class TagViewActivity extends TaskListActivity implements OnTabChangeList
} }
protected void setUpUpdateList() { 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); final ImageButton quickAddButton = (ImageButton) findViewById(R.id.commentButton);
addCommentField = (EditText) findViewById(R.id.commentField); addCommentField = (EditText) findViewById(R.id.commentField);
addCommentField.setOnEditorActionListener(new OnEditorActionListener() { addCommentField.setOnEditorActionListener(new OnEditorActionListener() {
@ -392,8 +391,14 @@ public class TagViewActivity extends TaskListActivity implements OnTabChangeList
} }
private void refreshUpdatesList() { private void refreshUpdatesList() {
if(tagData.getValue(TagData.REMOTE_ID) == 0) if(!actFmPreferenceService.isLoggedIn() || tagData.getValue(Task.REMOTE_ID) <= 0)
return; return;
if(!updatesTabAdded ) {
updatesTabAdded = true;
addTab(R.id.tab_updates, "updates", tabLabels[1]); //$NON-NLS-1$
}
if(updateAdapter == null) { if(updateAdapter == null) {
TodorooCursor<Update> currentCursor = tagDataService.getUpdates(tagData); TodorooCursor<Update> currentCursor = tagDataService.getUpdates(tagData);
startManagingCursor(currentCursor); startManagingCursor(currentCursor);

@ -298,7 +298,7 @@
<string-array name="TEA_urgency"> <string-array name="TEA_urgency">
<!-- urgency: labels for edit page. item #4 -> auto filled --> <!-- urgency: labels for edit page. item #4 -> auto filled -->
<item>No Deadline</item> <item>No Deadline</item>
<item>Specific Day/Time</item> <item>Specific Day</item>
<item>Today</item> <item>Today</item>
<item>Tomorrow</item> <item>Tomorrow</item>
<item>(day after)</item> <item>(day after)</item>

Loading…
Cancel
Save