调整评论,消息分享,关闭下载的游戏不要隐藏下载按钮
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user