调整评论,消息分享,关闭下载的游戏不要隐藏下载按钮

This commit is contained in:
khy
2016-11-16 12:08:26 +08:00
parent f28a54506e
commit 04cfbcb7e4
11 changed files with 119 additions and 43 deletions

View File

@ -1,7 +1,6 @@
package com.gh.common.util;
import android.content.Context;
import android.util.Log;
import com.android.volley.Request;
import com.android.volley.Response;
@ -18,7 +17,7 @@ public class PostCommentUtils {
new Thread(new Runnable() {
@Override
public void run() {
Utils.log("url::" + url, "/ content::" + content);
Utils.log("addCommentData--url::" + url, "/ content::" + content);
StringExtendedRequest request = new StringExtendedRequest(
Request.Method.POST, url, content,
new Response.Listener<String>() {
@ -55,7 +54,6 @@ public class PostCommentUtils {
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
Log.e("======onResponse", "onResponse");
if (listener != null){
listener.postSucced(response.toString());
}
@ -64,7 +62,6 @@ public class PostCommentUtils {
new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Log.e("======onErrorResponse", new String(error.networkResponse.data));
if (listener != null){
listener.postFailed(error);
}