Skip to content

Commit

Permalink
Change how the task works.
Browse files Browse the repository at this point in the history
  • Loading branch information
jessenic committed Aug 29, 2013
1 parent 701b2a6 commit e5b8fc2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
15 changes: 0 additions & 15 deletions SparklrWP Background Agent/ScheduledAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ protected async override void OnInvoke(ScheduledTask task)
notif.Show();
}
}
NotifyComplete();
}
else
{
Expand All @@ -167,23 +166,9 @@ protected async override void OnInvoke(ScheduledTask task)
notif.Show();
}
}
NotifyComplete();
}
else
{
NotifyComplete();
}
NotifyComplete();
}
}
else
{
NotifyComplete();
}
}
else
{
NotifyComplete();
}
NotifyComplete();
}
Expand Down
2 changes: 1 addition & 1 deletion SparklrWP/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public partial class App : Application
private static MainViewModel mainViewModel = null;
public static WPClogger logger = new WPClogger(LogLevel.debug);

public static Utils.Task BackgroundTask = new Task();
public static Utils.Task BackgroundTask;

public static SparklrClient Client = new SparklrClient();

Expand Down
2 changes: 2 additions & 0 deletions SparklrWP/Pages/MainPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using SparklrWP.Utils;
using System;
using System.Windows;
using System.Windows.Controls;
Expand Down Expand Up @@ -38,6 +39,7 @@ public MainPage()
this.ApplicationBar.MenuItems.Add(clearCache);
this.ApplicationBar.MenuItems.Add(cleanCache);
#endif
App.BackgroundTask = new Task();
}

public bool didFriends = false;
Expand Down

0 comments on commit e5b8fc2

Please sign in to comment.