From a6ba8a6c16d366677b5e968b17a9d98960717330 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Sun, 28 Dec 2008 00:12:50 +0000 Subject: [PATCH] How did i get the comparison backwards? Sloppy sloppy. --- AndroidManifest.xml | 4 ++-- src/com/timsu/astrid/utilities/Notifications.java | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index b2c4defe7..dcb1e06e4 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="16" + android:versionName="1.7.7"> diff --git a/src/com/timsu/astrid/utilities/Notifications.java b/src/com/timsu/astrid/utilities/Notifications.java index 3fe57f89d..f00dc09fd 100644 --- a/src/com/timsu/astrid/utilities/Notifications.java +++ b/src/com/timsu/astrid/utilities/Notifications.java @@ -85,12 +85,12 @@ public class Notifications extends BroadcastReceiver { private static boolean shouldDeleteAlarm(Notifiable task) { if(task.isTaskCompleted()) - return false; + return true; - if(task.getNotificationIntervalSeconds() > 0) - return false; + if(task.getNotificationIntervalSeconds() == 0) + return true; - return true; + return false; } public static void scheduleAllAlarms(Context context) { @@ -110,7 +110,7 @@ public class Notifications extends BroadcastReceiver { if(task.getTaskIdentifier() == null) return; - if(!shouldDeleteAlarm(task)) { + if(shouldDeleteAlarm(task)) { deleteAlarm(context, task.getTaskIdentifier().getId()); return; }