diff --git a/common/src/main/java/com/yunbao/common/activity/SudGameActivity.java b/common/src/main/java/com/yunbao/common/activity/SudGameActivity.java index 2add43165..f9d17f0bc 100644 --- a/common/src/main/java/com/yunbao/common/activity/SudGameActivity.java +++ b/common/src/main/java/com/yunbao/common/activity/SudGameActivity.java @@ -100,6 +100,7 @@ public class SudGameActivity extends AbsActivity { gameConfigModel.ui.lobby_players.custom = true; gameConfigModel.ui.join_btn.custom = true; + gameConfigModel.ui.lobby_game_setting.hide = true; // 配置不隐藏ping值 // SudMGP平台64bit游戏ID gameViewModel.switchGame((Activity) mContext, mLiveUid, mInteractionID); diff --git a/common/src/main/java/com/yunbao/common/sud/BaseGameViewModel.java b/common/src/main/java/com/yunbao/common/sud/BaseGameViewModel.java index 1407ebaf2..81200c004 100644 --- a/common/src/main/java/com/yunbao/common/sud/BaseGameViewModel.java +++ b/common/src/main/java/com/yunbao/common/sud/BaseGameViewModel.java @@ -104,8 +104,9 @@ public abstract class BaseGameViewModel implements SudFSMMGListener { private void initSdk(Activity activity, long gameId, String code) { String appId = getAppId(); String appKey = getAppKey(); + boolean testEnv = isTestEnv(); // 初始化sdk - SudMGP.initSDK(activity, appId, appKey, isTestEnv(), new ISudListenerInitSDK() { + SudMGP.initSDK(activity, appId, appKey,testEnv, new ISudListenerInitSDK() { @Override public void onSuccess() { loadGame(activity, code, gameId); diff --git a/common/src/main/java/com/yunbao/common/views/LiveSudGamePopup.java b/common/src/main/java/com/yunbao/common/views/LiveSudGamePopup.java index 8e1b144ef..bc4c185ed 100644 --- a/common/src/main/java/com/yunbao/common/views/LiveSudGamePopup.java +++ b/common/src/main/java/com/yunbao/common/views/LiveSudGamePopup.java @@ -21,7 +21,6 @@ import com.yunbao.common.http.live.LiveNetManager; import com.yunbao.common.manager.IMLoginManager; import com.yunbao.common.sud.QuickStartGameViewModel; import com.yunbao.common.sud.model.GameConfigModel; -import com.yunbao.common.sud.model.GameViewInfoModel; import com.yunbao.common.utils.Bus; import com.yunbao.common.utils.ToastUtil; import com.yunbao.common.views.weight.ViewClicksAntiShake; @@ -108,6 +107,7 @@ public class LiveSudGamePopup extends BottomPopupView { GameConfigModel gameConfigModel = gameViewModel.getGameConfigModel(); gameConfigModel.ui.ping.hide = true; // 配置不隐藏ping值 gameConfigModel.ui.level.hide = true; // 配置不隐藏ping值 + gameConfigModel.ui.lobby_game_setting.hide = true; // 配置不隐藏ping值 // SudMGP平台64bit游戏ID gameViewModel.switchGame((Activity) getContext(), mLiveUid, mInteractionID); @@ -137,7 +137,7 @@ public class LiveSudGamePopup extends BottomPopupView { } else { if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) { ToastUtil.show("金豆不够 "); - }else { + } else { ToastUtil.show("Insufficient money "); } @@ -148,7 +148,7 @@ public class LiveSudGamePopup extends BottomPopupView { public void onError(String error) { if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) { ToastUtil.show("金豆不够 "); - }else { + } else { ToastUtil.show("Insufficient money "); } } diff --git a/common/src/main/res/layout/hint_custom_popup.xml b/common/src/main/res/layout/hint_custom_popup.xml index e3d018354..b9e7b11ec 100644 --- a/common/src/main/res/layout/hint_custom_popup.xml +++ b/common/src/main/res/layout/hint_custom_popup.xml @@ -41,7 +41,7 @@ + android:textSize="12sp" /> () { @Override public boolean onLoadFailed(@Nullable GlideException e, Object model, Target target, boolean isFirstResource) { @@ -1185,6 +1185,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis LiveRoomViewHolder.follow(); mLiveChatAdapter.removetItem(bean); } else if (bean.getType() == -2) { + if (!bean.isAttention()) { LiveRoomViewHolder.follow(); } @@ -2732,10 +2733,16 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis if (attention == 0) { mBtnFollow.setVisibility(View.VISIBLE); mViewMedal.setVisibility(View.GONE); + if (mLiveChatAdapter != null) { + mLiveChatAdapter.setFans("0"); + } } else { if (mBtnFollow.getVisibility() == View.VISIBLE) { mBtnFollow.setVisibility(View.GONE); mViewMedal.setVisibility(View.VISIBLE); + if (mLiveChatAdapter != null) { + mLiveChatAdapter.setFans("1"); + } } } } @@ -3193,6 +3200,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis * 关注主播 */ public static void follow() { + EventBus.getDefault().post("stop_svga_new_user_follow"); LiveHttpUtil.setFrontTask("attent", new HttpCallback() { @@ -4036,6 +4044,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis public void setFansGroup(String isFans) { this.isFans = isFans.equals("1"); + } diff --git a/live/src/main/res/layout/item_live_chat.xml b/live/src/main/res/layout/item_live_chat.xml index 32f59f738..c4d360d8c 100644 --- a/live/src/main/res/layout/item_live_chat.xml +++ b/live/src/main/res/layout/item_live_chat.xml @@ -206,12 +206,13 @@ diff --git a/live/src/main/res/layout/view_hight_nobility.xml b/live/src/main/res/layout/view_hight_nobility.xml index 5c7195d59..482801e27 100644 --- a/live/src/main/res/layout/view_hight_nobility.xml +++ b/live/src/main/res/layout/view_hight_nobility.xml @@ -19,15 +19,19 @@ android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginTop="14dp" + android:paddingStart="20dp" + android:paddingEnd="20dp" android:text="@string/site_wide_news_hint1" android:textColor="#FFAAAAAA" android:textSize="14sp" /> @@ -37,8 +41,8 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="22dp" - android:layout_marginBottom="15dp" android:layout_marginEnd="16dp" + android:layout_marginBottom="15dp" android:gravity="center_horizontal">