新增【非贵族,守护,粉丝牌送礼交互优化】功能
This commit is contained in:
parent
b5673025be
commit
a6b5c102d2
@ -18,7 +18,7 @@ public class LiveGiftBean {
|
||||
// public static final int MARK_LUCK = 3;
|
||||
|
||||
private int id;
|
||||
private int type;//0 普通礼物 1是豪华礼物
|
||||
private int type;//0 普通礼物 1是贵族 2守护 3粉丝团
|
||||
private int mark;// 0 普通 1热门 2守护 3幸运
|
||||
private String name;
|
||||
private String price;
|
||||
|
@ -121,7 +121,7 @@ public class AppManager {
|
||||
*/
|
||||
public static void runDebugCode(Runnable runnable) {
|
||||
if (BuildConfig.DEBUG) {
|
||||
// runnable.run();
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,6 @@ import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.text.InputFilter;
|
||||
import android.text.InputType;
|
||||
import android.text.Spanned;
|
||||
import android.text.TextUtils;
|
||||
import android.text.format.DateFormat;
|
||||
import android.util.SparseArray;
|
||||
@ -331,7 +330,7 @@ public class DialogUitl {
|
||||
private Context mContext;
|
||||
private String mTitle;
|
||||
private String mContent;
|
||||
private String mConfrimString;
|
||||
private String mConfirmString;
|
||||
private String mCancelString;
|
||||
private boolean mCancelable;
|
||||
private boolean mBackgroundDimEnabled;//显示区域以外是否使用黑色半透明背景
|
||||
@ -371,8 +370,8 @@ public class DialogUitl {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setConfrimString(String confrimString) {
|
||||
mConfrimString = confrimString;
|
||||
public Builder setConfirmString(String confirmString) {
|
||||
mConfirmString = confirmString;
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -460,8 +459,8 @@ public class DialogUitl {
|
||||
content.setFilters(new InputFilter[]{new InputFilter.LengthFilter(mLength)});
|
||||
}
|
||||
TextView btnConfirm = (TextView) dialog.findViewById(R.id.btn_confirm);
|
||||
if (!TextUtils.isEmpty(mConfrimString)) {
|
||||
btnConfirm.setText(mConfrimString);
|
||||
if (!TextUtils.isEmpty(mConfirmString)) {
|
||||
btnConfirm.setText(mConfirmString);
|
||||
}
|
||||
TextView btnCancel = (TextView) dialog.findViewById(R.id.btn_cancel);
|
||||
if (!TextUtils.isEmpty(mCancelString)) {
|
||||
|
@ -50,7 +50,7 @@ public class VersionUtil {
|
||||
DialogUitl.Builder builder = new DialogUitl.Builder(context);
|
||||
builder.setTitle(context.getString(R.string.version_update))
|
||||
.setContent(configBean.getUpdateDes())
|
||||
.setConfrimString(context.getString(R.string.version_immediate_use))
|
||||
.setConfirmString(context.getString(R.string.version_immediate_use))
|
||||
.setCancelString(context.getString(R.string.version_not_update))
|
||||
.setCancelable(false)
|
||||
.setClickCallback(new DialogUitl.SimpleCallback2() {
|
||||
@ -81,7 +81,7 @@ public class VersionUtil {
|
||||
DialogUitl.Builder builder = new DialogUitl.Builder(context);
|
||||
builder.setTitle(context.getString(R.string.version_update))
|
||||
.setContent(configBean.getUpdateDes())
|
||||
.setConfrimString(context.getString(R.string.version_immediate_use))
|
||||
.setConfirmString(context.getString(R.string.version_immediate_use))
|
||||
.setCancelString(context.getString(R.string.version_not_update))
|
||||
.setCancelable(false)
|
||||
.setClickCallback(new DialogUitl.SimpleCallback2() {
|
||||
@ -111,7 +111,7 @@ public class VersionUtil {
|
||||
DialogUitl.Builder builder = new DialogUitl.Builder(context);
|
||||
builder.setTitle(context.getString(R.string.version_update))
|
||||
.setContent(configBean.getUpdateDes())
|
||||
.setConfrimString(context.getString(R.string.version_immediate_use))
|
||||
.setConfirmString(context.getString(R.string.version_immediate_use))
|
||||
.setCancelString(context.getString(R.string.version_not_update))
|
||||
.setCancelable(false)
|
||||
.setClickCallback(new DialogUitl.SimpleCallback2() {
|
||||
@ -134,7 +134,7 @@ public class VersionUtil {
|
||||
DialogUitl.Builder builder = new DialogUitl.Builder(context);
|
||||
builder.setTitle(context.getString(R.string.version_update))
|
||||
.setContent(configBean.getUpdateDes())
|
||||
.setConfrimString(context.getString(R.string.version_immediate_use))
|
||||
.setConfirmString(context.getString(R.string.version_immediate_use))
|
||||
.setCancelString(context.getString(R.string.version_not_update))
|
||||
.setCancelable(false)
|
||||
.setClickCallback(new DialogUitl.SimpleCallback2() {
|
||||
|
@ -872,6 +872,7 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="activity_center">Activity</string>
|
||||
<string name="basic_tools">Basic tools</string>
|
||||
<string name="effects_settings">Effect settings</string>
|
||||
<string name="live_chat_font_settings">Font settings</string>
|
||||
<string name="shield_gift_effect">Shield gift effect</string>
|
||||
<string name="shield_mount_effect">Shield car effect</string>
|
||||
<string name="current_live_room">You are in the current live room</string>
|
||||
@ -1125,6 +1126,11 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="unfollow"> Where is the host doing badly~\nBrother, are you sure you want to unfollow?</string>
|
||||
<string name="unfollow_confrim">follow</string>
|
||||
<string name="heat_add">Heat Add</string>
|
||||
<string name="live_room_chat_fount_size_low">LOW</string>
|
||||
<string name="live_room_chat_fount_size_def">DEFAULT</string>
|
||||
<string name="live_room_chat_fount_size_high">HIGH</string>
|
||||
<string name="dialog_live_fount_title">Select font size</string>
|
||||
<string name="dialog_fount_submit">confirm</string>
|
||||
<string name="chat_prompt">Private chat prompt</string>
|
||||
<string name="broadcast_oom">A private buoy on the side of the broadcast room</string>
|
||||
<string name="chat_prompt2">Dynamic message</string>
|
||||
@ -1143,4 +1149,10 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="delete_account1">Do you want to delete the account</string>
|
||||
<string name="delete_account2">After clicking delete, it will take effect immediately and cannot be restored. Are you sure you want to continue?</string>
|
||||
<string name="delete_account3">Confirm deletion</string>
|
||||
<string name="dialog_live_gift_noble">This gift is exclusive to the nobility~</string>
|
||||
<string name="dialog_live_gift_guard">"This gift is exclusive to guardianship~ "</string>
|
||||
<string name="dialog_live_gift_fans">This gift is exclusive to the fan group~</string>
|
||||
<string name="dialog_live_gift_open_noble">VIP</string>
|
||||
<string name="dialog_live_gift_open_guard">Open Guard</string>
|
||||
<string name="dialog_live_gift_open_fans">Open Fan group</string>
|
||||
</resources>
|
||||
|
@ -1144,4 +1144,10 @@
|
||||
<string name="delete_account1">是否刪除賬號</string>
|
||||
<string name="delete_account2">點擊刪除後即刻生效,且不可恢復,您確認要繼續嗎?</string>
|
||||
<string name="delete_account3">確認刪除</string>
|
||||
<string name="dialog_live_gift_noble">該禮物是貴族專屬禮物噢~</string>
|
||||
<string name="dialog_live_gift_guard">該禮物是守護專屬禮物噢~</string>
|
||||
<string name="dialog_live_gift_fans">"該禮物是粉絲團專屬禮物噢~ "</string>
|
||||
<string name="dialog_live_gift_open_noble">開通貴族</string>
|
||||
<string name="dialog_live_gift_open_guard">開通守護</string>
|
||||
<string name="dialog_live_gift_open_fans">開通粉絲團</string>
|
||||
</resources>
|
||||
|
@ -1143,4 +1143,10 @@
|
||||
<string name="delete_account1">是否刪除賬號</string>
|
||||
<string name="delete_account2">點擊刪除後即刻生效,且不可恢復,您確認要繼續嗎?</string>
|
||||
<string name="delete_account3">確認刪除</string>
|
||||
<string name="dialog_live_gift_noble">該禮物是貴族專屬禮物噢~</string>
|
||||
<string name="dialog_live_gift_guard">該禮物是守護專屬禮物噢~</string>
|
||||
<string name="dialog_live_gift_fans">"該禮物是粉絲團專屬禮物噢~ "</string>
|
||||
<string name="dialog_live_gift_open_noble">開通貴族</string>
|
||||
<string name="dialog_live_gift_open_guard">開通守護</string>
|
||||
<string name="dialog_live_gift_open_fans">開通粉絲團</string>
|
||||
</resources>
|
||||
|
@ -1144,4 +1144,10 @@
|
||||
<string name="delete_account1">是否刪除賬號</string>
|
||||
<string name="delete_account2">點擊刪除後即刻生效,且不可恢復,您確認要繼續嗎?</string>
|
||||
<string name="delete_account3">確認刪除</string>
|
||||
<string name="dialog_live_gift_noble">該禮物是貴族專屬禮物噢~</string>
|
||||
<string name="dialog_live_gift_guard">該禮物是守護專屬禮物噢~</string>
|
||||
<string name="dialog_live_gift_fans">"該禮物是粉絲團專屬禮物噢~ "</string>
|
||||
<string name="dialog_live_gift_open_noble">開通貴族</string>
|
||||
<string name="dialog_live_gift_open_guard">開通守護</string>
|
||||
<string name="dialog_live_gift_open_fans">開通粉絲團</string>
|
||||
</resources>
|
||||
|
@ -1150,4 +1150,10 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="delete_account1">Do you want to delete the account</string>
|
||||
<string name="delete_account2">After clicking delete, it will take effect immediately and cannot be restored. Are you sure you want to continue?</string>
|
||||
<string name="delete_account3">Confirm deletion</string>
|
||||
<string name="dialog_live_gift_noble">This gift is exclusive to the nobility~</string>
|
||||
<string name="dialog_live_gift_guard">This gift is exclusive to guardianship~</string>
|
||||
<string name="dialog_live_gift_fans">This gift is exclusive to the fan group~</string>
|
||||
<string name="dialog_live_gift_open_noble">VIP</string>
|
||||
<string name="dialog_live_gift_open_guard">Open Guard</string>
|
||||
<string name="dialog_live_gift_open_fans">Open Fan group</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",
|
||||
|
@ -1044,7 +1044,11 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
liveFansFragment.show(getSupportFragmentManager(), "LiveGuardDialogFragment");
|
||||
break;
|
||||
case GUARD:
|
||||
openNewGuardListWindow(mContext instanceof LiveRyAnchorActivity);
|
||||
if(event.getObject()==null) {
|
||||
openNewGuardListWindow(mContext instanceof LiveRyAnchorActivity);
|
||||
}else{
|
||||
openNewBuyGuardWindow(true);
|
||||
}
|
||||
break;
|
||||
case LIVE_WKS://周星榜
|
||||
String weeklyStarUrl = CommonAppConfig.HOST + "/h5/activity/weekStar/index.html?&uid="
|
||||
|
@ -1,6 +1,5 @@
|
||||
package com.yunbao.live.adapter;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.os.Build;
|
||||
@ -13,14 +12,11 @@ import android.widget.TextView;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.yunbao.common.bean.BaseModel;
|
||||
import com.yunbao.common.bean.LiveUserMailBoxModel;
|
||||
import com.yunbao.common.http.base.HttpCallback;
|
||||
import com.yunbao.common.http.live.LiveNetManager;
|
||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
import com.yunbao.common.utils.DialogUitl;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.live.R;
|
||||
import com.yunbao.live.dialog.LiveUserAnchorMailBoxWebInfoPopDialog;
|
||||
|
||||
@ -94,7 +90,7 @@ public class LiveUserAnchorMailBoxAdapter extends RecyclerView.Adapter<LiveUserA
|
||||
new DialogUitl.Builder(mContext)
|
||||
.setTitle(mContext.getString(R.string.live_user_letter_dialog_title))
|
||||
.setContent(mContext.getString(R.string.live_user_letter_dialog_content))
|
||||
.setConfrimString(mContext.getString(R.string.live_user_letter_dialog_yes))
|
||||
.setConfirmString(mContext.getString(R.string.live_user_letter_dialog_yes))
|
||||
.setCancelString(mContext.getString(R.string.live_user_letter_dialog_no))
|
||||
.setView(R.layout.dialog_live_random_pk)
|
||||
.setCancelable(true)
|
||||
|
@ -45,7 +45,9 @@ import com.yunbao.common.http.HttpCallback;
|
||||
import com.yunbao.common.http.HttpClient;
|
||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
import com.yunbao.common.manager.IMLoginManager;
|
||||
import com.yunbao.common.utils.AppManager;
|
||||
import com.yunbao.common.utils.Bus;
|
||||
import com.yunbao.common.utils.DialogUitl;
|
||||
import com.yunbao.common.utils.DpUtil;
|
||||
import com.yunbao.common.utils.GiftCacheUtil;
|
||||
import com.yunbao.common.utils.NobleUtil;
|
||||
@ -59,6 +61,7 @@ import com.yunbao.live.adapter.LiveGiftPagerAdapter;
|
||||
import com.yunbao.live.bean.GiftTopBean;
|
||||
import com.yunbao.live.bean.LiveGuardInfo;
|
||||
import com.yunbao.live.custom.GiftViewPager;
|
||||
import com.yunbao.live.event.LiveAudienceEvent;
|
||||
import com.yunbao.live.http.LiveHttpConsts;
|
||||
import com.yunbao.live.http.LiveHttpUtil;
|
||||
import com.yunbao.live.utils.ToolsButton;
|
||||
@ -809,6 +812,45 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
||||
isGetNewWrap = true;
|
||||
refreshWrapListAfterSend();
|
||||
}
|
||||
} else if (code == 1007 && mLiveGiftBean.getType() != 0) {
|
||||
hideLianBtn();
|
||||
dismiss();
|
||||
LiveAudienceEvent.LiveAudienceType type = null;
|
||||
String confirmString = mContext.getString(R.string.dialog_fount_submit);
|
||||
String tips = msg;
|
||||
switch (mLiveGiftBean.getType()) {
|
||||
case 1:
|
||||
type = LiveAudienceEvent.LiveAudienceType.NOBLE;
|
||||
tips = mContext.getString(R.string.dialog_live_gift_noble);
|
||||
confirmString = mContext.getString(R.string.dialog_live_gift_open_noble);
|
||||
break;
|
||||
case 2:
|
||||
type = LiveAudienceEvent.LiveAudienceType.GUARD;
|
||||
tips = mContext.getString(R.string.dialog_live_gift_guard);
|
||||
confirmString = mContext.getString(R.string.dialog_live_gift_open_guard);
|
||||
break;
|
||||
case 3:
|
||||
type = LiveAudienceEvent.LiveAudienceType.FAN_CLUB;
|
||||
tips = mContext.getString(R.string.dialog_live_gift_fans);
|
||||
confirmString = mContext.getString(R.string.dialog_live_gift_open_fans);
|
||||
}
|
||||
LiveAudienceEvent.LiveAudienceType finalType = type;
|
||||
new DialogUitl.Builder(mContext)
|
||||
.setView(R.layout.dialog_live_unfollow)
|
||||
.setConfirmString(confirmString)
|
||||
.setContent(tips)
|
||||
.setClickCallback((dialog, content) -> {
|
||||
LiveAudienceEvent event = new LiveAudienceEvent()
|
||||
.setType(finalType);
|
||||
if (finalType == LiveAudienceEvent.LiveAudienceType.GUARD) {
|
||||
event = event.setObject("");
|
||||
}
|
||||
Bus.get().post(event);
|
||||
}).build().show();
|
||||
|
||||
AppManager.runDebugCode(() -> {
|
||||
Log.i("gifBean", mLiveGiftBean.toString());
|
||||
});
|
||||
} else {
|
||||
hideLianBtn();
|
||||
ToastUtil.show(msg);
|
||||
|
@ -1,6 +1,5 @@
|
||||
package com.yunbao.live.dialog;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Dialog;
|
||||
import android.os.Bundle;
|
||||
import android.text.Html;
|
||||
@ -35,7 +34,6 @@ import com.yunbao.common.http.live.LiveNetManager;
|
||||
import com.yunbao.common.utils.DialogUitl;
|
||||
import com.yunbao.common.utils.RouteUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.live.R;
|
||||
import com.yunbao.live.activity.LiveActivity;
|
||||
import com.yunbao.live.activity.LiveRyAnchorActivity;
|
||||
@ -438,7 +436,7 @@ public class LiveNewGuardBuyDialogFragment extends AbsDialogFragment implements
|
||||
.setView(R.layout.dialog_live_random_pk)
|
||||
.setTitle(mContext.getString(R.string.dialog_tip))
|
||||
.setCancelString(mContext.getString(R.string.live_use_discount_no))
|
||||
.setConfrimString(mContext.getString(R.string.live_use_discount_yes))
|
||||
.setConfirmString(mContext.getString(R.string.live_use_discount_yes))
|
||||
.setClickCallback(new DialogUitl.SimpleCallback2() {
|
||||
@Override
|
||||
public void onCancelClick() {
|
||||
|
@ -5,8 +5,6 @@ import android.graphics.Color;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.core.content.ContextCompat;
|
||||
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.Gravity;
|
||||
@ -46,29 +44,22 @@ import com.yunbao.common.utils.RouteUtil;
|
||||
import com.yunbao.common.utils.SVGAViewUtils;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.live.R;
|
||||
import com.yunbao.live.activity.LiveActivity;
|
||||
import com.yunbao.live.activity.LiveReportActivity;
|
||||
import com.yunbao.live.activity.LiveRyAnchorActivity;
|
||||
import com.yunbao.live.bean.GuardUserBean;
|
||||
import com.yunbao.live.bean.ImpressBean;
|
||||
import com.yunbao.common.bean.LiveBean;
|
||||
import com.yunbao.live.custom.MyTextView;
|
||||
import com.yunbao.live.event.LiveAudienceEvent;
|
||||
import com.yunbao.live.event.LiveRoomChangeEvent;
|
||||
import com.yunbao.live.http.LiveHttpConsts;
|
||||
import com.yunbao.live.http.LiveHttpUtil;
|
||||
import com.yunbao.live.presenter.LiveRoomCheckLivePresenter;
|
||||
import com.yunbao.live.utils.LiveTextRender;
|
||||
import com.yunbao.live.views.LiveRoomViewHolder;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import io.rong.imlib.IRongCoreCallback;
|
||||
@ -534,7 +525,7 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
|
||||
if (mFollowing) {
|
||||
DialogUitl.Builder builder = new DialogUitl.Builder(mContext)
|
||||
.setContent(mContext.getString(R.string.unfollow))
|
||||
.setConfrimString(mContext.getString(R.string.unfollow_confrim))
|
||||
.setConfirmString(mContext.getString(R.string.unfollow_confrim))
|
||||
.setCancelString(mContext.getString(R.string.unfollow_cancel))
|
||||
.setView(R.layout.dialog_live_unfollow)
|
||||
.setClickCallback3(new DialogUitl.SimpleCallback3() {
|
||||
|
@ -54,7 +54,6 @@ import com.yunbao.common.utils.DpUtil;
|
||||
import com.yunbao.common.utils.ScreenDimenUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.live.R;
|
||||
import com.yunbao.live.activity.LiveAudienceActivity;
|
||||
import com.yunbao.live.activity.LiveRyAnchorActivity;
|
||||
@ -1242,7 +1241,7 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
|
||||
"<font color='#999999' size='12'>有人向您发起PK请求。</font><br/>" +
|
||||
"<font color='#FB4F4F' size='12'>若拒绝PK,将会10分钟内不会再收到任何随机PK请求。</font>"
|
||||
))
|
||||
.setConfrimString("接受")
|
||||
.setConfirmString("接受")
|
||||
.setCancelString("拒絕")
|
||||
.setView(R.layout.dialog_live_random_pk)
|
||||
.setSimpleCallbackView(new DialogUitl.SimpleCallbackView() {
|
||||
|
@ -46,7 +46,6 @@ import com.yunbao.common.utils.ProcessImageUtil;
|
||||
import com.yunbao.common.utils.RouteUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.AbsViewHolder;
|
||||
import com.yunbao.common.views.LiveClarityCustomPopup;
|
||||
import com.yunbao.common.views.LiveNewWishListPopup;
|
||||
@ -62,7 +61,6 @@ import com.yunbao.live.dialog.LiveAnchorSayPopDialog;
|
||||
import com.yunbao.live.dialog.LiveFaceUnityDialogFragment;
|
||||
import com.yunbao.live.dialog.LiveNewRoomClassDialogFragment;
|
||||
import com.yunbao.live.dialog.LiveNewRoomTypeDialogFragment;
|
||||
import com.yunbao.live.dialog.LiveNewWishListDialogFragment;
|
||||
import com.yunbao.live.dialog.LiveTimeDialogFragment;
|
||||
import com.yunbao.live.event.LiveAudienceEvent;
|
||||
import com.yunbao.live.http.LiveHttpConsts;
|
||||
@ -664,7 +662,7 @@ public class LiveNewReadyRyViewHolder extends AbsViewHolder implements View.OnCl
|
||||
new DialogUitl.Builder(mContext)
|
||||
.setContent(mContext.getString(R.string.live_location_close_3))
|
||||
.setCancelable(true)
|
||||
.setConfrimString(mContext.getString(R.string.live_location_close_2))
|
||||
.setConfirmString(mContext.getString(R.string.live_location_close_2))
|
||||
.setClickCallback(new DialogUitl.SimpleCallback() {
|
||||
|
||||
@Override
|
||||
|
@ -7,25 +7,19 @@ import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.media.AudioManager;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.os.SystemClock;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.Gravity;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewParent;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.google.android.exoplayer2.PlaybackException;
|
||||
import com.google.android.exoplayer2.Player;
|
||||
import com.google.android.exoplayer2.ui.StyledPlayerView;
|
||||
@ -35,10 +29,8 @@ import com.lxj.xpopup.core.BasePopupView;
|
||||
import com.lxj.xpopup.interfaces.XPopupCallback;
|
||||
import com.lzf.easyfloat.EasyFloat;
|
||||
import com.lzy.okserver.OkDownload;
|
||||
import com.yunbao.common.Constants;
|
||||
import com.yunbao.common.bean.EnterRoomNewModel;
|
||||
import com.yunbao.common.dialog.LiveFontSizeSettingDialog;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.http.HttpCallback;
|
||||
import com.yunbao.common.http.HttpClient;
|
||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
@ -50,14 +42,11 @@ import com.yunbao.common.utils.L;
|
||||
import com.yunbao.common.utils.MicStatusManager;
|
||||
import com.yunbao.common.utils.ScreenDimenUtil;
|
||||
import com.yunbao.common.utils.SpUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.LiveClarityCustomPopup;
|
||||
import com.yunbao.live.R;
|
||||
import com.yunbao.live.activity.LiveActivity;
|
||||
import com.yunbao.live.activity.LiveAudienceActivity;
|
||||
import com.yunbao.live.dialog.LiveUserDialogFragment;
|
||||
import com.yunbao.live.event.LiveAudienceEvent;
|
||||
import com.yunbao.live.utils.LiveExoPlayerManager;
|
||||
|
||||
@ -700,7 +689,7 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
|
||||
DialogUitl.Builder builder = new DialogUitl.Builder(mContext)
|
||||
.setContent("邀請您進行語音連麥")
|
||||
.setTitle(mLiveBean.getUserNiceName())
|
||||
.setConfrimString("接受")
|
||||
.setConfirmString("接受")
|
||||
.setCancelString("拒絕")
|
||||
.setView(R.layout.dialog_live_mic_invite)
|
||||
.setClickCallback(new DialogUitl.SimpleCallback() {
|
||||
|
@ -29,7 +29,6 @@ import com.yunbao.common.utils.L;
|
||||
import com.yunbao.common.utils.ProcessImageUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.AbsViewHolder;
|
||||
import com.yunbao.live.R;
|
||||
import com.yunbao.live.activity.LiveActivity;
|
||||
@ -231,7 +230,7 @@ public class LiveReadyRyViewHolder extends AbsViewHolder implements View.OnClick
|
||||
new DialogUitl.Builder(mContext)
|
||||
.setContent(mContext.getString(R.string.live_location_close_3))
|
||||
.setCancelable(true)
|
||||
.setConfrimString(mContext.getString(R.string.live_location_close_2))
|
||||
.setConfirmString(mContext.getString(R.string.live_location_close_2))
|
||||
.setClickCallback(new DialogUitl.SimpleCallback() {
|
||||
|
||||
@Override
|
||||
|
@ -41,7 +41,6 @@ import com.yunbao.common.utils.L;
|
||||
import com.yunbao.common.utils.ProcessImageUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.AbsViewHolder;
|
||||
import com.yunbao.live.R;
|
||||
import com.yunbao.live.activity.LiveActivity;
|
||||
@ -255,7 +254,7 @@ public class LiveReadyViewHolder extends AbsViewHolder implements View.OnClickLi
|
||||
new DialogUitl.Builder(mContext)
|
||||
.setContent(mContext.getString(R.string.live_location_close_3))
|
||||
.setCancelable(true)
|
||||
.setConfrimString(mContext.getString(R.string.live_location_close_2))
|
||||
.setConfirmString(mContext.getString(R.string.live_location_close_2))
|
||||
.setClickCallback(new DialogUitl.SimpleCallback() {
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user