|
@@ -753,7 +753,7 @@ public class TCStudentLiveRoomActivity extends BaseMVPActivity<AcTtLiveroomLayou
|
|
|
if (permission) {
|
|
|
handleMicClick();
|
|
|
} else {
|
|
|
- UiUtils.showPermissionTipDialog(getSupportFragmentManager(),this,"提示","连麦需要麦克风、储存权限,去设置?");
|
|
|
+ UiUtils.showPermissionTipDialog(getSupportFragmentManager(), this, "提示", "连麦需要麦克风、储存权限,去设置?");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -2076,33 +2076,29 @@ public class TCStudentLiveRoomActivity extends BaseMVPActivity<AcTtLiveroomLayou
|
|
|
mMLivePlayer.setRenderFillMode(isPcClientLive ? V2TXLiveDef.V2TXLiveFillMode.V2TXLiveFillModeFit : V2TXLiveDef.V2TXLiveFillMode.V2TXLiveFillModeFill);
|
|
|
resetVideoContainer(!isPcClientLive);
|
|
|
|
|
|
-// if (!TextUtils.isEmpty(roomInfo.roomConfig)) {
|
|
|
-// try {
|
|
|
-// JSONObject jsonObject = new JSONObject(roomInfo.roomConfig);
|
|
|
-// //聊天模式
|
|
|
-// int chatCtrlMode = jsonObject.optInt("whether_chat", 0);
|
|
|
-// //连麦模式
|
|
|
-// int micCtrlMode = jsonObject.optInt("whether_mic", 0);
|
|
|
-// //购物车是否显示
|
|
|
-// int shopCarMode = jsonObject.optInt("whether_view_shop_cart", 0);
|
|
|
-// isEnableChat = chatCtrlMode == 1;
|
|
|
-// isEnableMic = micCtrlMode == 1;
|
|
|
-//
|
|
|
-//
|
|
|
-// } catch (JSONException e) {
|
|
|
-// e.printStackTrace();
|
|
|
-// }
|
|
|
-// }
|
|
|
|
|
|
-// if (TextUtils.isEmpty(roomInfo.getShopCarUrl())) {
|
|
|
-// //隐藏购物车
|
|
|
-// mViewShopCarAnim.setVisibility(View.GONE);
|
|
|
-// mIvShopCar.setVisibility(View.GONE);
|
|
|
-// } else {
|
|
|
-// //显示购物车
|
|
|
-// mViewShopCarAnim.setVisibility(View.VISIBLE);
|
|
|
-// mIvShopCar.setVisibility(View.INVISIBLE);
|
|
|
-// }
|
|
|
+ boolean isHideShopCar = false;
|
|
|
+ if (!TextUtils.isEmpty(roomInfo.getRoomConfig())) {
|
|
|
+ try {
|
|
|
+ JSONObject jsonObject = new JSONObject(roomInfo.getRoomConfig());
|
|
|
+ //购物车是否显示
|
|
|
+ int shopCarMode = jsonObject.optInt("whether_view_shop_cart", 0);
|
|
|
+ isHideShopCar = shopCarMode == 1;
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (isHideShopCar) {
|
|
|
+ //隐藏购物车
|
|
|
+ mViewShopCarAnim.setVisibility(View.GONE);
|
|
|
+ mIvShopCar.setVisibility(View.GONE);
|
|
|
+ } else {
|
|
|
+ //显示购物车
|
|
|
+ mViewShopCarAnim.setVisibility(View.VISIBLE);
|
|
|
+ mIvShopCar.setVisibility(View.INVISIBLE);
|
|
|
+ }
|
|
|
+
|
|
|
//黑名单模式
|
|
|
isEnableAll = roomInfo.blacklistFlag == 1;//1是黑名单 0否
|
|
|
updateInputTip();
|