修改视频流评论投诉

This commit is contained in:
张玉久
2020-09-16 14:23:29 +08:00
parent 2fa6e9c549
commit afff3446c4
2 changed files with 19 additions and 9 deletions

View File

@ -61,6 +61,9 @@ import com.lightgame.utils.AppManager;
import com.lightgame.utils.Util_System_Keyboard;
import com.lightgame.utils.Utils;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
@ -1684,7 +1687,13 @@ public class DialogUtils {
otherComplaintContainer.setVisibility(View.VISIBLE);
} else {
dialog.cancel();
callback.onClicked(reportTv.getText().toString());
JSONObject jsonObject = new JSONObject();
try {
jsonObject.put("reason", reportTv.getText().toString());
} catch (JSONException e) {
e.printStackTrace();
}
callback.onClicked(jsonObject.toString());
}
});
}
@ -1700,7 +1709,14 @@ public class DialogUtils {
return;
}
dialog.cancel();
callback.onClicked(complaintCommentEt.getText().toString());
JSONObject jsonObject = new JSONObject();
try {
jsonObject.put("reason", "其它");
jsonObject.put("description", complaintCommentEt.getText().toString());
} catch (JSONException e) {
e.printStackTrace();
}
callback.onClicked(jsonObject.toString());
});
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);