2013-05-15 Mark Holland <mark@mark-holland.me.uk>

* 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
This commit is contained in:
markholland 2013-05-15 20:15:34 +00:00
parent 8cbf72e246
commit de17e062b5
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2013-05-15 Mark Holland <mark@mark-holland.me.uk>
* src/pandroid/agent/PandroidAgentListener.java: Possibly fixed
notification disappearing, agent running > 24 hours and notification
still present.
2013-05-14 Mark Holland <mark@mark-holland.me.uk> 2013-05-14 Mark Holland <mark@mark-holland.me.uk>
* src/pandroid/agent/PandroidAgentListener.java: Moved the * src/pandroid/agent/PandroidAgentListener.java: Moved the

View File

@ -190,6 +190,13 @@ public class PandroidAgentListener extends Service {
protected void onPostExecute(Void unused) 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(); updateValues();
contact(); contact();
@ -205,7 +212,7 @@ public class PandroidAgentListener extends Service {
notification.flags |= Notification.FLAG_ONGOING_EVENT; notification.flags |= Notification.FLAG_ONGOING_EVENT;
if(Core.NotificationCheck == "enabled"){ if(Core.NotificationCheck.equals("enabled")){
CancelNotification(getApplicationContext(),42); CancelNotification(getApplicationContext(),42);
notificationManager.notify(42, notification); notificationManager.notify(42, notification);
} }