From caf2edf9a68cee85680807c79a7f2804344aa105 Mon Sep 17 00:00:00 2001 From: tim Date: Tue, 25 Mar 2014 16:32:55 +0200 Subject: [PATCH] Latest interface design. --- .../main/java/za/org/treehouse/hypoalarm/AlarmNotify.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/HypoAlarm/src/main/java/za/org/treehouse/hypoalarm/AlarmNotify.java b/HypoAlarm/src/main/java/za/org/treehouse/hypoalarm/AlarmNotify.java index 61c1f07..3f37122 100644 --- a/HypoAlarm/src/main/java/za/org/treehouse/hypoalarm/AlarmNotify.java +++ b/HypoAlarm/src/main/java/za/org/treehouse/hypoalarm/AlarmNotify.java @@ -17,7 +17,6 @@ import java.util.Timer; import java.util.TimerTask; public class AlarmNotify extends Service { - private final int UPDATE_INTERVAL = 15*1000; // Timer is updated four times a minute public final int notifyID = 1; private Timer timer = new Timer(); @@ -38,6 +37,7 @@ public class AlarmNotify extends Service { @Override public int onStartCommand(Intent intent, int flags, int startId) { + final int UPDATE_INTERVAL = 10*1000; // Timer is updated six times a minute SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this); final int gracePeriod = sharedPref.getInt(getString(R.string.GracePeriodPref), 60); @@ -58,9 +58,6 @@ public class AlarmNotify extends Service { .setPriority(Notification.PRIORITY_HIGH); //.setContentText(String.format(getString(R.string.notificationText), phoneNumber) + MainActivity.MinutesToGracePeriodStr(gracePeriod)) - // todo better icon - - // Set up dismiss action Intent cancellerIntent = new Intent(getBaseContext(), CancelGraceReceiver.class); PendingIntent cancellerPendingIntent = PendingIntent.getBroadcast(getBaseContext(), MainActivity.CANCEL_GRACE_REQUEST, cancellerIntent, 0);