Permalink
Browse files

Always use myStreamPostsAdapter when executing AddPostTask.

  • Loading branch information...
1 parent b3a02e4 commit 7f3c1e2ec0319cddcfe32227e93ed8f897f4a554 @thomaslee committed Sep 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/co/tomlee/frapp/PostsActivity.java
@@ -284,7 +284,8 @@ private void showPostEditor(final Post post) {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
- new AddPostTask(post != null ? post.getId() : null, postsAdapter, accessToken).execute(view.getText().toString());
+ final String id = (post != null) ? post.getId() : null;
+ new AddPostTask(id, myStreamPostsAdapter, accessToken).execute(view.getText().toString());
}
})
.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {

0 comments on commit 7f3c1e2

Please sign in to comment.