Skip to content

Commit

Permalink
Fix retrofit post api
Browse files Browse the repository at this point in the history
  • Loading branch information
xingstarx committed Oct 31, 2016
1 parent b11f46a commit d3747f1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/moose/com/ac/retrofit/Api.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,8 @@ Observable<ArticleListWrapper> getArticleList(@Query("sort") int sort, @Query("c

/**
* post comment to server
*
* @param commentBody
*/
@FormUrlEncoded
@POST(Config.API_COMMENT)
Observable<CommentSend> sendComment(@Body CommentBody commentBody);
}
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void onClick(View v) {

break;
case R.id.comment_send_button:
if (!TextUtils.isEmpty(mEditText.getText())) {
if (!TextUtils.isEmpty(mEditText.getText().toString())) {
sendComment(mEditText.getText().toString());
}
break;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/moose/com/ac/util/RxBus.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.hwangjr.rxbus.Bus;

public static final class RxBus {
public final class RxBus {
private static Bus sBus;

public static synchronized Bus get() {
Expand Down

0 comments on commit d3747f1

Please sign in to comment.