Skip to content

Commit

Permalink
Fix problem with AutoRefresehService not being stopped outside the up…
Browse files Browse the repository at this point in the history
…date period
  • Loading branch information
Peter Björkman committed Jun 26, 2011
1 parent 0af64a0 commit 0be4cea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/com/liato/bankdroid/appwidget/AutoRefreshService.java
Expand Up @@ -60,10 +60,13 @@ public class AutoRefreshService extends Service {

@Override
public void onCreate() {
if (InsideUpdatePeriod())
if (InsideUpdatePeriod()){
new DataRetrieverTask().execute();
else
}
else{
Log.v(TAG, "Skipping update due to not in update period.");
stopSelf();
}
}

private boolean InsideUpdatePeriod() {
Expand Down

0 comments on commit 0be4cea

Please sign in to comment.