dxh 5 years ago
parent
commit
728a781497

+ 7 - 11
app/src/main/java/com/electric/chargingpile/fragment/SvVideoShowView.java

@ -91,19 +91,15 @@ public class SvVideoShowView implements View.OnClickListener {
91 91
            if (targetType == 23) {
92 92
                view = LayoutInflater.from(activity).inflate(R.layout.view_show_view, null);
93 93
                initPlayer(view);
94
                initBottom(view);
95
                viewGroup.addView(view);
96
97
                setData();
98 94
99 95
            } else if (targetType == 24) {
100 96
                view = LayoutInflater.from(activity).inflate(R.layout.view_show_zoom, null);
101 97
                initZoomPhoto(view);
102
                initBottom(view);
103
                viewGroup.addView(view);
104
105
                setData();
106 98
            }
99
            initBottom(view);
100
            viewGroup.addView(view);
101
102
            setData();
107 103
        }
108 104
    }
109 105
@ -153,8 +149,8 @@ public class SvVideoShowView implements View.OnClickListener {
153 149
        if (num < 999) {
154 150
            re = re + num;
155 151
        } else {
156
            float result = num / 1000;
157
            int sl = num % 1000;
152
            float result = num / 10000;
153
            int sl = num % 10000;
158 154
            if (sl == 0) {
159 155
                re = String.format(Locale.CHINESE, "%f", result) + "W";
160 156
            } else {
@ -385,7 +381,7 @@ public class SvVideoShowView implements View.OnClickListener {
385 381
    }
386 382
387 383
    public void updateView() {
388
384
        ToastUtil.showToast(activity, "updateView", Toast.LENGTH_LONG);
389 385
    }
390 386
391 387
    public void initAndPlay() {