-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
There is a annoymous AsyncTask object in au.com.wallaceit.reddinator.core.SubredditManager.loadDefaultSubredditsau methods. This object won't be cancelled. I think we should replace it with non-anonymous object and cancel it in the onDestroy() method.
public void loadDefaultSubreddits(){
try {
subreddits = new JSONObject(defaultSubreddits); // start with front page and all
} catch (JSONException e) {
e.printStackTrace();
}
new LoadDefaultSubredditsTask().execute();
}
Similarly, the finish() method in au.com.wallaceit.reddinator.activity can't guarantee loadPostTask will be cancelled.
Metadata
Metadata
Assignees
Labels
No labels