From 7171a3870e820ef98c987508999282ca41f426dc Mon Sep 17 00:00:00 2001 From: Tim Su Date: Mon, 19 Jan 2009 05:47:17 +0000 Subject: [PATCH] Added warning for sync if IOException, and added the fields-picker from Sergi Velez's patch with some modifications. --- AndroidManifest.xml | 31 +- res/layout/task_list_row.xml | 88 ++-- res/values/colors.xml | 2 +- res/values/strings.xml | 69 ++- res/values/styles.xml | 2 +- res/xml/preferences.xml | 55 ++- src/com/mdt/rtm/Invoker.java | 4 +- src/com/timsu/astrid/R.java | 450 ++++++++++-------- src/com/timsu/astrid/activities/TaskEdit.java | 7 +- .../astrid/activities/TaskListAdapter.java | 268 +++++++---- .../astrid/data/task/TaskModelForList.java | 12 + src/com/timsu/astrid/sync/RTMSyncService.java | 12 +- .../astrid/sync/SynchronizationService.java | 20 +- .../timsu/astrid/utilities/Notifications.java | 15 +- .../timsu/astrid/utilities/Preferences.java | 44 +- .../utilities/TaskFieldsVisibility.java | 55 +++ 16 files changed, 745 insertions(+), 389 deletions(-) create mode 100644 src/com/timsu/astrid/utilities/TaskFieldsVisibility.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 5530f77eb..b9fb05e0c 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="64" + android:versionName="2.0.1"> @@ -29,7 +29,32 @@ android:theme="@android:style/Theme.Dialog" android:launchMode="singleTask" /> - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/task_list_row.xml b/res/layout/task_list_row.xml index 80cd7db49..59b56e235 100644 --- a/res/layout/task_list_row.xml +++ b/res/layout/task_list_row.xml @@ -19,19 +19,21 @@ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --> - + android:layout_height="wrap_content" + android:minHeight="45dip" > @@ -39,9 +41,11 @@ android:gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="fill_parent" + android:scaleType="center" android:drawingCacheQuality="low" android:paddingLeft="5dip"/> + - + + + + - + + - - - - - - + + + + + + + + + + + - \ No newline at end of file + diff --git a/res/values/colors.xml b/res/values/colors.xml index 0864febe7..28cded9d8 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -32,7 +32,7 @@ #ffF0E89E #ff88AAFF #ff888888 - #ff888888 + #ff888888 #ff44bb66 #ffbbbbbb diff --git a/res/values/strings.xml b/res/values/strings.xml index 236ff76d8..13f10d070 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -46,6 +46,10 @@ %d / %d Active %d / %d Active + + %d Alarm + %d Alarms + 1 Tag %d Tags @@ -75,18 +79,20 @@ Astrid: Tagged \"%s\": hidden - Due: - Goal - Finished - Overdue: - H New Task - Tags: - No Tags - Left - Overtime - Spent + H + Due in + Goal + Overdue by + Finished + Estimated: + Elapsed: + Reminder Every + Repeat Every + Set + Tags: + Notes: Add Tags @@ -220,9 +226,10 @@ When finished, restart Astrid and come back here. Welcome to Astrid\'s RTM sync! \n\n -- Notifications and repeats are not synchronized.\n -- In RTM, deleting, or moving and then renaming a task, is not detected.\n -- Having ~50+ tasks in one list might cause that list to not be imported\n +Things that don\'t sync:\n +- Notifications and repeats\n +- In RTM, deleting, or moving+renaming tasks\n +\n Wish me luck!\n Synchronize Now! @@ -290,4 +297,40 @@ Wish me luck!\n Other Default Deadlines # of days from now to set new deadlines + + Displayed Fields + Select the fields to show in task list + + titleVisible + Task Title + Task description + true + deadlineVisible + Dates + Upcoming deadlines / completed date + true + timeVisible + Times + Estimated & Elapsed Times + true + importanceVisible + Importance + Task importance bubble + true + tagsVisible + Tags + Tags associated with this task + true + repeatVisible + Repeats + Task repeat information + true + reminderVisible + Reminders + Displayed if this task has reminders + false + notesVisible + Notes + Notes associated with this task + false diff --git a/res/values/styles.xml b/res/values/styles.xml index 75f08fa85..93d676ee5 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -36,7 +36,7 @@