OkHttpUtils.post().params(map).url(url).build().connTimeOut(6000).readTimeOut(6000).execute(new StringCallback() {
505 484
                @Override
506 485
                public void onError(Call call, Exception e) {
@ -521,6 +500,9 @@ public class ChatContentCommentListDialogFragment extends DialogFragment impleme
521 500
                        if (chatContentCommentListDialogFragmentListener != null) {
522 501
                            chatContentCommentListDialogFragmentListener.updateCommentNum(chatRecommendBean.commentNums);
523 502
                        }
503
                    } else if ("8010".equals(code)) {
504
                        startActivity(new Intent(getActivity().getApplicationContext(), LoginActivity.class));
505
                        ToastUtil.showToast(getContext(), desc, Toast.LENGTH_SHORT);
524 506
                    } else {
525 507
                        ToastUtil.showToast(getContext(), desc, Toast.LENGTH_SHORT);
526 508
                    }

+ 7 - 3
app/src/main/java/com/electric/chargingpile/fragment/CommonDialogFragment.java

@ -7,7 +7,6 @@ import android.support.constraint.ConstraintLayout;
7 7
import android.support.v4.app.DialogFragment;
8 8
import android.text.Editable;
9 9
import android.text.TextWatcher;
10
import android.util.Log;
11 10
import android.view.Gravity;
12 11
import android.view.View;
13 12
import android.view.Window;
@ -27,6 +26,7 @@ public class CommonDialogFragment extends DialogFragment {
27 26
28 27
    private static final String TAG = "CommonDialogFragment";
29 28
    private static final String ARG_COMMENT = "comment";
29
    private static final String ARG_HINT = "hint";
30 30
    private static final String ARG_TYPE = "type";
31 31
    private Dialog dialogFragment;
32 32
    private String type;
@ -37,10 +37,11 @@ public class CommonDialogFragment extends DialogFragment {
37 37
    private ConstraintLayout countInfo;
38 38
    private TextView count;
39 39
40
    public static CommonDialogFragment newInstance(String comment, String type) {
40
    public static CommonDialogFragment newInstance(String comment,String hint, String type) {
41 41
        CommonDialogFragment dialogFragment = new CommonDialogFragment();
42 42
        Bundle args = new Bundle();
43 43
        args.putString(ARG_COMMENT, comment);
44
        args.putString(ARG_HINT, hint);
44 45
        args.putString(ARG_TYPE, type);
45 46
        dialogFragment.setArguments(args);
46 47
        return dialogFragment;
@ -49,6 +50,9 @@ public class CommonDialogFragment extends DialogFragment {
49 50
    @Override
50 51
    public Dialog onCreateDialog(Bundle savedInstanceState) {
51 52
        final String comment = getArguments().getString(ARG_COMMENT);
53
        final String hint = getArguments().getString(ARG_HINT);
54
        type = getArguments().getString(ARG_TYPE);
55
52 56
        dialogFragment = new Dialog(getActivity(), R.style.BottomDialog);
53 57
        // 外部点击设置为可取消
54 58
        dialogFragment.setCancelable(true);
@ -73,7 +77,7 @@ public class CommonDialogFragment extends DialogFragment {
73 77
74 78
        editText.setText(comment);
75 79
        editText.setSelection(comment.length());
76
80
        editText.setHint(hint);
77 81
        updateView(comment);
78 82
79 83
        send.setOnClickListener(new View.OnClickListener() {

+ 2 - 1
app/src/main/res/layout/list_item_comment.xml

@ -2,6 +2,7 @@
2 2
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 3
    xmlns:app="http://schemas.android.com/apk/res-auto"
4 4
    xmlns:tools="http://schemas.android.com/tools"
5
    android:id="@+id/listItemView"
5 6
    android:layout_width="match_parent"
6 7
    android:layout_height="wrap_content"
7 8
    tools:background="#424242">
@ -98,8 +99,8 @@
98 99
        android:layout_width="wrap_content"
99 100
        android:layout_height="42dp"
100 101
        android:paddingLeft="29dp"
101
        app:layout_constraintLeft_toLeftOf="parent"
102 102
        app:layout_constraintBottom_toBottomOf="parent"
103
        app:layout_constraintLeft_toLeftOf="parent"
103 104
        app:layout_constraintTop_toBottomOf="@+id/content"
104 105
        tools:background="#06648f">
105 106

cdzApp - Gogs: Go Git Service

充电桩app代码

huyuguo 598eb725e7 引用第三方gradle 升级 7 anni fa
..
src 7082cc0853 remove 7 anni fa
build.gradle 598eb725e7 引用第三方gradle 升级 7 anni fa