diff --git a/pandora_agents/android/ChangeLog b/pandora_agents/android/ChangeLog index fd8b41bbac..7f41181b96 100644 --- a/pandora_agents/android/ChangeLog +++ b/pandora_agents/android/ChangeLog @@ -1,3 +1,9 @@ +2013-05-15 Mark Holland + + * src/pandroid/agent/PandroidAgentListener.java: Possibly fixed + notification disappearing, agent running > 24 hours and notification + still present. + 2013-05-14 Mark Holland * src/pandroid/agent/PandroidAgentListener.java: Moved the diff --git a/pandora_agents/android/src/pandroid/agent/PandroidAgentListener.java b/pandora_agents/android/src/pandroid/agent/PandroidAgentListener.java index 260fdcb9ca..851d0d8ffa 100644 --- a/pandora_agents/android/src/pandroid/agent/PandroidAgentListener.java +++ b/pandora_agents/android/src/pandroid/agent/PandroidAgentListener.java @@ -189,6 +189,13 @@ public class PandroidAgentListener extends Service { @Override protected void onPostExecute(Void unused) { + +// SharedPreferences agentPreferences = getApplicationContext().getSharedPreferences( +// getApplicationContext().getString(R.string.const_string_preferences), +// Activity.MODE_PRIVATE); +// +// String NotificationCheck = agentPreferences.getString("NotificationCheck", "enabled"); + updateValues(); contact(); @@ -205,7 +212,7 @@ public class PandroidAgentListener extends Service { notification.flags |= Notification.FLAG_ONGOING_EVENT; - if(Core.NotificationCheck == "enabled"){ + if(Core.NotificationCheck.equals("enabled")){ CancelNotification(getApplicationContext(),42); notificationManager.notify(42, notification); }