送礼交互优化
This commit is contained in:
parent
8e07d4523f
commit
1198a8f1d8
@ -1193,4 +1193,5 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="extract_to">%s is extracted from %s</string>
|
||||
<string name="extract_to2">%S sent to %s</string>
|
||||
<string name="rebot_config_auto_say_max">Over the maximum value</string>
|
||||
<string name="insufficient_balance">Insufficient balance, continue to recharge</string>
|
||||
</resources>
|
||||
|
@ -1188,4 +1188,5 @@
|
||||
<string name="extract_to">%s在%s中抽取到了</string>
|
||||
<string name="extract_to2">%S送给了%s</string>
|
||||
<string name="rebot_config_auto_say_max">超过最大值</string>
|
||||
<string name="insufficient_balance">餘額不足,繼續充值</string>
|
||||
</resources>
|
||||
|
@ -1187,4 +1187,5 @@
|
||||
<string name="extract_to">%s在%s中抽取到了</string>
|
||||
<string name="extract_to2">%S送给了%s</string>
|
||||
<string name="rebot_config_auto_say_max">超过最大值</string>
|
||||
<string name="insufficient_balance">餘額不足,繼續充值</string>
|
||||
</resources>
|
||||
|
@ -1188,4 +1188,5 @@
|
||||
<string name="extract_to">%s在%s中抽取到了</string>
|
||||
<string name="extract_to2">%S送给了%s</string>
|
||||
<string name="rebot_config_auto_say_max">超过最大值</string>
|
||||
<string name="insufficient_balance">餘額不足,繼續充值</string>
|
||||
</resources>
|
||||
|
@ -1194,4 +1194,5 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="extract_to2">%S sent to %s</string>
|
||||
<string name="live_vote_create_error">Create Vote Error</string>
|
||||
<string name="rebot_config_auto_say_max">Over the maximum value</string>
|
||||
<string name="insufficient_balance">Insufficient balance, continue to recharge</string>
|
||||
</resources>
|
||||
|
@ -9,9 +9,9 @@ ext {
|
||||
]
|
||||
manifestPlaceholders = [
|
||||
//正式、
|
||||
serverHost : "https://napi.yaoulive.com",
|
||||
// serverHost : "https://napi.yaoulive.com",
|
||||
// 测试
|
||||
// serverHost : "https://ceshi.yaoulive.com",
|
||||
serverHost : "https://ceshi.yaoulive.com",
|
||||
|
||||
//腾讯地图
|
||||
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
||||
|
@ -4,6 +4,7 @@ import static com.yunbao.common.CommonAppConfig.isGetNewWrap;
|
||||
import static com.yunbao.common.utils.RouteUtil.PATH_COIN;
|
||||
import static com.yunbao.live.views.LiveRoomViewHolder.bean1;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.DialogInterface;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
@ -155,6 +156,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
||||
DialogInterface.OnShowListener onShowListener;
|
||||
private SVGAImageView blindSvga, blindBoxOpen;
|
||||
private View close_view;
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.dialog_live_gift_wrap;
|
||||
@ -1085,6 +1087,18 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
||||
AppManager.runDebugCode(() -> {
|
||||
Log.i("gifBean", mLiveGiftBean.toString());
|
||||
});
|
||||
} else if (code == 1001) {
|
||||
hideLianBtn();
|
||||
new DialogUitl.Builder(mContext)
|
||||
.setView(R.layout.dialog_live_unfollow)
|
||||
.setConfirmString(getString(R.string.charge))
|
||||
.setContent(getString(R.string.insufficient_balance))
|
||||
.setClickCallback(new DialogUitl.SimpleCallback() {
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog, String content) {
|
||||
forwardMyCoin(0);
|
||||
}
|
||||
}).build().show();
|
||||
} else {
|
||||
hideLianBtn();
|
||||
ToastUtil.show(msg);
|
||||
|
@ -2633,18 +2633,22 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
getIsHot();
|
||||
getGuardInfo();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void getGuardInfo() {
|
||||
LiveHttpUtil.getUserList(mLiveUid, mStream, "guard", 1, new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (code == 0) {
|
||||
JSONObject json = JSONObject.parseObject(info[0]);
|
||||
JSONArray userlist = json.getJSONArray("userlist");
|
||||
if (userlist.size() != 0) {
|
||||
setGuardIcon(JSONArray.parseArray(userlist.toJSONString(), LiveUserGiftBean.class).get(0));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
||||
android:layout_marginEnd="6dp"
|
||||
android:text="@string/come_hint"
|
||||
android:textColor="#fff"
|
||||
android:textSize="10sp" />
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user