Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Always use myStreamPostsAdapter when executing AddPostTask.

  • Loading branch information...
commit 7f3c1e2ec0319cddcfe32227e93ed8f897f4a554 1 parent b3a02e4
@thomaslee authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/co/tomlee/frapp/PostsActivity.java
View
3  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() {
Please sign in to comment.
Something went wrong with that request. Please try again.