toast context判断 禁止context.getString 操作

This commit is contained in:
kehaoyuan
2018-02-03 10:16:27 +08:00
parent bf51be498b
commit d29ccc0aca
28 changed files with 49 additions and 54 deletions

View File

@ -44,7 +44,7 @@ public class PostCommentUtils {
listener.postSuccess(response);
}
} else {
Utils.toast(context, context.getString(R.string.post_failure_hint));
Utils.toast(context, R.string.post_failure_hint);
}
}