Skip to content

Commit

Permalink
Wait for onResume() to mess with threads when changing tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslee committed Sep 4, 2012
1 parent 56b71ab commit 64c65a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/co/tomlee/frapp/PostsActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ public void onCreate(Bundle savedInstanceState) {
tabHost.setOnTabChangedListener(new TabHost.OnTabChangeListener() {
@Override
public void onTabChanged(String tabId) {
stopPollThread();
if (ready) stopPollThread();
stream = new Stream(tabId);
postsAdapter = streamAdapters.get(stream);
startPollThread();
if (ready) startPollThread();
}
});
postsAdapter = myStreamPostsAdapter;
Expand Down

0 comments on commit 64c65a5

Please sign in to comment.