From 94b172cb5f1491acd554be256dd7e0207eeadd02 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Tue, 28 Jun 2011 22:20:16 -0700 Subject: [PATCH] Enforce refresh details date after tag gets removed (and other details updating actions) --- .../com/todoroo/astrid/alarms/AlarmControlSet.java | 2 +- astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/alarms/AlarmControlSet.java b/astrid/plugin-src/com/todoroo/astrid/alarms/AlarmControlSet.java index 7d9577d35..ef0eccefe 100644 --- a/astrid/plugin-src/com/todoroo/astrid/alarms/AlarmControlSet.java +++ b/astrid/plugin-src/com/todoroo/astrid/alarms/AlarmControlSet.java @@ -94,4 +94,4 @@ public final class AlarmControlSet implements TaskEditControlSet { return true; } -} \ No newline at end of file +} diff --git a/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java b/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java index bef6a55ef..a729e5671 100644 --- a/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java +++ b/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java @@ -548,6 +548,14 @@ public class TaskAdapter extends CursorAdapter implements Filterable { requestNewDetails(task); } + if(taskDetailLoader.size() > 0) { + activity.runOnUiThread(new Runnable() { + @Override + public void run() { + notifyDataSetChanged(); + } + }); + } } catch (Exception e) { // suppress silently } finally {