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:
parent
4819aaed2f
commit
c8d08a53fd
|
@ -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>
|
||||
|
||||
* src/pandroid/agent/PandroidAgentListener.java: Moved the
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue