How did i get the comparison backwards? Sloppy sloppy.

pull/14/head
Tim Su 17 years ago
parent bb50b8a3e0
commit a6ba8a6c16

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.timsu.astrid" package="com.timsu.astrid"
android:versionCode="14" android:versionCode="16"
android:versionName="1.7.6"> android:versionName="1.7.7">
<uses-permission android:name="android.permission.VIBRATE"/> <uses-permission android:name="android.permission.VIBRATE"/>

@ -85,12 +85,12 @@ public class Notifications extends BroadcastReceiver {
private static boolean shouldDeleteAlarm(Notifiable task) { private static boolean shouldDeleteAlarm(Notifiable task) {
if(task.isTaskCompleted()) if(task.isTaskCompleted())
return false; return true;
if(task.getNotificationIntervalSeconds() > 0) if(task.getNotificationIntervalSeconds() == 0)
return false; return true;
return true; return false;
} }
public static void scheduleAllAlarms(Context context) { public static void scheduleAllAlarms(Context context) {
@ -110,7 +110,7 @@ public class Notifications extends BroadcastReceiver {
if(task.getTaskIdentifier() == null) if(task.getTaskIdentifier() == null)
return; return;
if(!shouldDeleteAlarm(task)) { if(shouldDeleteAlarm(task)) {
deleteAlarm(context, task.getTaskIdentifier().getId()); deleteAlarm(context, task.getTaskIdentifier().getId());
return; return;
} }

Loading…
Cancel
Save