From de17e062b5f6afa2fec54bb1bc519723165abcba Mon Sep 17 00:00:00 2001 From: markholland Date: Wed, 15 May 2013 20:15:34 +0000 Subject: [PATCH] 2013-05-15 Mark Holland * src/pandroid/agent/PandroidAgentListener.java: Possibly fixed notification disappearing, agent running > 24 hours and notification still present. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8135 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/android/ChangeLog | 6 ++++++ .../src/pandroid/agent/PandroidAgentListener.java | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) 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); }