新增h5功能全服喇叭修改
This commit is contained in:
@@ -188,21 +188,27 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
|
||||
}
|
||||
switch (messageType) {
|
||||
case WORLDHORN:
|
||||
trumpetMsg = content;
|
||||
LiveNetManager.get(getContext())
|
||||
.nobleUseTrumpet(trumpetMsg, mLiveUid, new HttpCallback<List<BaseModel>>() {
|
||||
@Override
|
||||
public void onSuccess(List<BaseModel> data) {
|
||||
dismiss();
|
||||
ToastUtil.show(getResources().getString(R.string.use_successfully));
|
||||
}
|
||||
if (trumpetNum > 0) {
|
||||
trumpetMsg = content;
|
||||
LiveNetManager.get(getContext())
|
||||
.nobleUseTrumpet(trumpetMsg, mLiveUid, new HttpCallback<List<BaseModel>>() {
|
||||
@Override
|
||||
public void onSuccess(List<BaseModel> data) {
|
||||
dismiss();
|
||||
ToastUtil.show(getResources().getString(R.string.use_successfully));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
dismiss();
|
||||
ToastUtil.show(error);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
ToastUtil.show(R.string.enough_speakers);
|
||||
dismiss();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
dismiss();
|
||||
ToastUtil.show(error);
|
||||
}
|
||||
});
|
||||
break;
|
||||
case POPUPSCREEN:
|
||||
((LiveActivity) mContext).sendDanmuMessage(content);
|
||||
@@ -235,11 +241,14 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
|
||||
public void onCheckedChanged(RadioGroup group, int checkedId) {
|
||||
changeCheckState(checkedId);
|
||||
if (checkedId == R.id.btn_2) {
|
||||
if (nobleId < 5 || trumpetNum < 1) {
|
||||
if (nobleId < 5) {
|
||||
|
||||
imm.hideSoftInputFromWindow(mInput.getWindowToken(), 0);
|
||||
HighNobilityDialog fragment = new HighNobilityDialog();
|
||||
fragment.show(((FragmentActivity) mContext).getSupportFragmentManager(), "HighNobilityDialog");
|
||||
dismiss();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user