How did i get the comparison backwards? Sloppy sloppy.

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

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

@ -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;
}

Loading…
Cancel
Save