From ca8a74d7556fd637796a4635c8b19d6b933b7933 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Mon, 2 Aug 2010 14:38:52 -0700 Subject: [PATCH] Minor ui tweaks to make task edit adapter third page look nicer when no plugins, add on activity have a 'no items' text --- .../astrid/reminders/Notifications.java | 3 ++ astrid/res/layout/addon_activity.xml | 42 +++++++++++++++---- astrid/res/layout/addon_adapter_row.xml | 19 +++++---- astrid/res/layout/task_edit_activity.xml | 32 ++++++-------- astrid/res/layout/task_list_activity.xml | 1 + .../astrid/activity/AddOnActivity.java | 16 ++++--- .../astrid/activity/TaskEditActivity.java | 1 + .../todoroo/astrid/adapter/AddOnAdapter.java | 4 +- .../todoroo/astrid/service/AddOnService.java | 2 +- 9 files changed, 73 insertions(+), 47 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java b/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java index ffbf332f1..859ad8a0d 100644 --- a/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java +++ b/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java @@ -110,6 +110,9 @@ public class Notifications extends BroadcastReceiver { return false; } + // schedule next notification + ReminderService.getInstance().scheduleAlarm(task); + // you're done - don't sound, do delete if(task.isCompleted() || task.isDeleted()) return false; diff --git a/astrid/res/layout/addon_activity.xml b/astrid/res/layout/addon_activity.xml index a93654032..4bd10cf80 100644 --- a/astrid/res/layout/addon_activity.xml +++ b/astrid/res/layout/addon_activity.xml @@ -7,18 +7,44 @@ - + android:layout_height="fill_parent"> + + + + + + - + android:layout_height="fill_parent"> + + + + + + \ No newline at end of file diff --git a/astrid/res/layout/addon_adapter_row.xml b/astrid/res/layout/addon_adapter_row.xml index d5a9cebd5..e29f45db8 100644 --- a/astrid/res/layout/addon_adapter_row.xml +++ b/astrid/res/layout/addon_adapter_row.xml @@ -12,7 +12,7 @@ @@ -49,18 +49,21 @@ diff --git a/astrid/res/layout/task_edit_activity.xml b/astrid/res/layout/task_edit_activity.xml index 36b64d672..da2bd29bf 100644 --- a/astrid/res/layout/task_edit_activity.xml +++ b/astrid/res/layout/task_edit_activity.xml @@ -94,21 +94,15 @@ android:autoText="true" android:capitalize="sentences" android:singleLine="false" /> - - - - -