1:修改页面的图标
2:修改更换实名认证 3:隐藏关系卡 4:房间类型删除 只保留点唱、男神、女神
This commit is contained in:
@@ -81,56 +81,59 @@ public class RealNameActivity extends BaseMvpActivity<RealNamePresenter, Activit
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void realNameSuccess(RealNameBean msg) {
|
public void realNameSuccess(RealNameBean msg) {
|
||||||
Bundle data = new Bundle();
|
|
||||||
WbCloudFaceVerifySdk.InputData inputData = new WbCloudFaceVerifySdk.InputData(
|
|
||||||
msg.getFaceId(),
|
|
||||||
msg.getOrderNo(),
|
|
||||||
msg.getAppid(),
|
|
||||||
msg.getApiVersion(),
|
|
||||||
msg.getNonce(),
|
|
||||||
msg.getUserid(),
|
|
||||||
msg.getSign(),
|
|
||||||
FaceVerifyStatus.Mode.GRADE,
|
|
||||||
msg.getLicence());
|
|
||||||
data.putSerializable(WbCloudFaceContant.INPUT_DATA, inputData);
|
|
||||||
//设置是否打开语音提示,默认关闭,此处设置为关闭
|
|
||||||
data.putBoolean(WbCloudFaceContant. PLAY_VOICE, true);
|
|
||||||
|
|
||||||
//避免用户快速点击导致二次登录,二次拉起刷脸等操作引起问题
|
finish();
|
||||||
WbCloudFaceVerifySdk.getInstance().
|
|
||||||
initAdvSdk(RealNameActivity.this, data, new WbCloudFaceVerifyLoginListener() {
|
|
||||||
@Override
|
|
||||||
public void onLoginSuccess () {
|
|
||||||
//登录成功,拉起 sdk 页面,由 FaceVerifyResultListener 返回刷脸结果
|
|
||||||
WbCloudFaceVerifySdk.getInstance().startWbFaceVerifySdk(RealNameActivity.this, new WbCloudFaceVerifyResultListener() {
|
|
||||||
@Override
|
|
||||||
public void onFinish(WbFaceVerifyResult result) {
|
|
||||||
if (result != null) {
|
|
||||||
if (result.isSuccess()) {
|
|
||||||
Log.d("@@@", "刷脸成功!");
|
|
||||||
SpUtil.setRealName(true);
|
|
||||||
MvpPre.realNameResult(result.getOrderNo());
|
|
||||||
|
|
||||||
} else {
|
// Bundle data = new Bundle();
|
||||||
Log.d("@@@", "刷脸失败!");
|
// WbCloudFaceVerifySdk.InputData inputData = new WbCloudFaceVerifySdk.InputData(
|
||||||
queren1();
|
// msg.getFaceId(),
|
||||||
}
|
// msg.getOrderNo(),
|
||||||
}
|
// msg.getAppid(),
|
||||||
//刷脸结束后,及时释放资源
|
// msg.getApiVersion(),
|
||||||
WbCloudFaceVerifySdk.getInstance().release();
|
// msg.getNonce(),
|
||||||
|
// msg.getUserid(),
|
||||||
}
|
// msg.getSign(),
|
||||||
});
|
// FaceVerifyStatus.Mode.GRADE,
|
||||||
}
|
// msg.getLicence());
|
||||||
@Override
|
// data.putSerializable(WbCloudFaceContant.INPUT_DATA, inputData);
|
||||||
public void onLoginFailed (WbFaceError error){
|
// //设置是否打开语音提示,默认关闭,此处设置为关闭
|
||||||
Log.d("@@@", "刷脸失败!");
|
// data.putBoolean(WbCloudFaceContant. PLAY_VOICE, true);
|
||||||
//刷脸结束后,及时释放资源
|
//
|
||||||
WbCloudFaceVerifySdk.getInstance().release();
|
// //避免用户快速点击导致二次登录,二次拉起刷脸等操作引起问题
|
||||||
queren1();
|
// WbCloudFaceVerifySdk.getInstance().
|
||||||
|
// initAdvSdk(RealNameActivity.this, data, new WbCloudFaceVerifyLoginListener() {
|
||||||
}
|
// @Override
|
||||||
});
|
// public void onLoginSuccess () {
|
||||||
|
// //登录成功,拉起 sdk 页面,由 FaceVerifyResultListener 返回刷脸结果
|
||||||
|
// WbCloudFaceVerifySdk.getInstance().startWbFaceVerifySdk(RealNameActivity.this, new WbCloudFaceVerifyResultListener() {
|
||||||
|
// @Override
|
||||||
|
// public void onFinish(WbFaceVerifyResult result) {
|
||||||
|
// if (result != null) {
|
||||||
|
// if (result.isSuccess()) {
|
||||||
|
// Log.d("@@@", "刷脸成功!");
|
||||||
|
// SpUtil.setRealName(true);
|
||||||
|
// MvpPre.realNameResult(result.getOrderNo());
|
||||||
|
//
|
||||||
|
// } else {
|
||||||
|
// Log.d("@@@", "刷脸失败!");
|
||||||
|
// queren1();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// //刷脸结束后,及时释放资源
|
||||||
|
// WbCloudFaceVerifySdk.getInstance().release();
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// @Override
|
||||||
|
// public void onLoginFailed (WbFaceError error){
|
||||||
|
// Log.d("@@@", "刷脸失败!");
|
||||||
|
// //刷脸结束后,及时释放资源
|
||||||
|
// WbCloudFaceVerifySdk.getInstance().release();
|
||||||
|
// queren1();
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -181,7 +184,7 @@ public class RealNameActivity extends BaseMvpActivity<RealNamePresenter, Activit
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (RegexUtils.isIDCard18Exact(mBinding.edPassword.getText().toString())) {
|
if (RegexUtils.isIDCard18Exact(mBinding.edPassword.getText().toString())) {
|
||||||
if (mBinding.btnSubmit.getText().toString().equals("下一步")) {
|
if (mBinding.btnSubmit.getText().toString().equals("立即认证")) {
|
||||||
mBinding.stepNum1.setBackground(getResources().getDrawable(com.xscm.moduleutil.R.mipmap.num_11));
|
mBinding.stepNum1.setBackground(getResources().getDrawable(com.xscm.moduleutil.R.mipmap.num_11));
|
||||||
mBinding.stepNum2.setBackground(getResources().getDrawable(com.xscm.moduleutil.R.mipmap.num_2));
|
mBinding.stepNum2.setBackground(getResources().getDrawable(com.xscm.moduleutil.R.mipmap.num_2));
|
||||||
// mBinding.l1.setVisibility(View.GONE);
|
// mBinding.l1.setVisibility(View.GONE);
|
||||||
|
|||||||
@@ -125,6 +125,8 @@ public class CommonAppContext extends MultiDexApplication implements Applicatio
|
|||||||
@Getter
|
@Getter
|
||||||
public UnreadCountEvent unreadCountEvent;
|
public UnreadCountEvent unreadCountEvent;
|
||||||
|
|
||||||
|
public boolean isShowAg;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
|
|||||||
@@ -2,18 +2,18 @@ package com.xscm.moduleutil.utils.config;
|
|||||||
|
|
||||||
public enum EnvironmentEnum {
|
public enum EnvironmentEnum {
|
||||||
PRODUCTION(//生产环境
|
PRODUCTION(//生产环境
|
||||||
"http://md.xscmmidi.site/",
|
"https://my.qixing2.top/",
|
||||||
"yIZtKT0bz5hhD3wb30p+n5+qoasPj0XGza1qRuYXhtm9nFJdf1fA5B4tB6MjGRQNrCIAmlRMiiUP2DhjsDcih9Szx8HmZADuwCI0YTnva6kibqgbuYOtU2zeem3phkbZe27vbZ94aCWAZulloMeXuAFHd0jSaCBxNctKTYLjGQUGnDt/IDQr6mvLHSbb19X9vgQBa2gsTHjt3HYh2EY7dRJA020SPDe35hKf54v826Vgd34isc+BERQ7dwSH0NJ16OqFP181nlGRZvFFbuab3mweFyDOXQTpuN4NbixO5QQ=",
|
"a/0XMgDa0h3iljlYhvH/zqMLzGQk5YDjF6iEsJdb17mBTlB1+9be2hQmDheV7PkuB+adQu3mSI7ledn0hmfKqEXDhTsNbL7JZ98+xk0ln3QUNBD0JNViY6mC/utOH+xD/2D5xSnq0xe8odd09vuyifxUuMhluLFKf8Bta7Q6NPi4REOzBLjq5lrdXbiJYHoTl/nK6XSCYw8hQuKRyztkZyFnlHzPM7rA34S8X1RMfYDL6DiVpbwY1IP9Yl+pY7Gr+wY+aX8izzK8IW7wCzODRqI+B0auNFso69smj0ECVLc=",
|
||||||
"https://oss-cn-beijing.aliyuncs.com/",
|
"https://oss-cn-beijing.aliyuncs.com/",
|
||||||
"LTAI5tKgrfcFQxH46ZwWYgFW",
|
"LTAI5tPBEux6EFkknyNbcDGK",
|
||||||
"ZOjTqAJmUL563EKFKySrUwAHtx4hKt",
|
"3pPqhBsF6y6O3q4euKg7MUOvKK7CYZ",
|
||||||
"midi01",
|
"myyuliao",
|
||||||
"https://midi01.oss-cn-beijing.aliyuncs.com/",
|
"https://myyuliao.oss-cn-beijing.aliyuncs.com/",
|
||||||
"wxef1289d8a89b41d4",
|
"wx7e232c2dae5f2ea5",
|
||||||
1600101474,
|
1600106900,
|
||||||
"a3f0f0c78307434fa1c697c3429fbdcf",
|
"b48912a0b10d48f88be7ac5ee8675a6b",
|
||||||
"tcp://81.70.45.221",
|
"tcp://119.45.34.13",
|
||||||
"https://md.xscmmidi.site/h5"),
|
"https://myh5.qixing2.top"),
|
||||||
TEST(//测试环境
|
TEST(//测试环境
|
||||||
"http://md.qxmier.com/",
|
"http://md.qxmier.com/",
|
||||||
"6rdWuz058oq5OahdbFiGEybUcdahd12J83L34Uc7MrPIrxtFG+rXiwDvRcqNvjwbClbbmvMrmxKVkIysFByBsl0Qe9kqd2w8T/nhK5G6eXXlk2V9AjYCieIU+jRnjZBB+Cfechr6rCGJ2aeBARIsXcRPW7wm9WFK9euh5T+v6Pyte68yNaNdcYCll3+U4/uCEog7HygCnMIbAU+kqoPdmn2H+51YOHW+VsnsHd4w1+I3f8Tt0xLIXGM4GWnQueZ5GR46GTWiSYMy8dCIh9SPIMRyC91GosVcfGPMJSdcXqc=",
|
"6rdWuz058oq5OahdbFiGEybUcdahd12J83L34Uc7MrPIrxtFG+rXiwDvRcqNvjwbClbbmvMrmxKVkIysFByBsl0Qe9kqd2w8T/nhK5G6eXXlk2V9AjYCieIU+jRnjZBB+Cfechr6rCGJ2aeBARIsXcRPW7wm9WFK9euh5T+v6Pyte68yNaNdcYCll3+U4/uCEog7HygCnMIbAU+kqoPdmn2H+51YOHW+VsnsHd4w1+I3f8Tt0xLIXGM4GWnQueZ5GR46GTWiSYMy8dCIh9SPIMRyC91GosVcfGPMJSdcXqc=",
|
||||||
@@ -22,11 +22,11 @@ public enum EnvironmentEnum {
|
|||||||
"DhpCS82gaigZljYqsWsUWUAZ20dREz",
|
"DhpCS82gaigZljYqsWsUWUAZ20dREz",
|
||||||
"qx-yusheng",
|
"qx-yusheng",
|
||||||
"https://qx-yusheng.oss-cn-hangzhou.aliyuncs.com/",
|
"https://qx-yusheng.oss-cn-hangzhou.aliyuncs.com/",
|
||||||
"wxc7681513be9f926b",
|
"wx7e232c2dae5f2ea5",
|
||||||
1600101474,
|
1600106900,
|
||||||
"05b406b4541e413887d8d2bf9be8642c",
|
"b48912a0b10d48f88be7ac5ee8675a6b",
|
||||||
"tcp://47.120.21.132",
|
"tcp://47.120.21.132",
|
||||||
"https://chatvespa.qxmier.com");
|
"https://myh5.qixing2.top");
|
||||||
|
|
||||||
private final String serverUrl;
|
private final String serverUrl;
|
||||||
private final String ALI_AUTH_KEY;//阿里云授权key
|
private final String ALI_AUTH_KEY;//阿里云授权key
|
||||||
|
|||||||
@@ -424,7 +424,7 @@ public class RoomActivity extends BaseMvpActivity<RoomPresenter, ActivityRoomBin
|
|||||||
// // 保持Activity alive,不调用finish()
|
// // 保持Activity alive,不调用finish()
|
||||||
// minimizeToBackground();
|
// minimizeToBackground();
|
||||||
// }
|
// }
|
||||||
if (mRoomInfoResp!=null) {
|
if (mRoomInfoResp != null) {
|
||||||
if (!mRoomInfoResp.getRoom_info().getType_id().equals("6")) {
|
if (!mRoomInfoResp.getRoom_info().getType_id().equals("6")) {
|
||||||
// 只有在用户主动离开应用时才执行最小化操作
|
// 只有在用户主动离开应用时才执行最小化操作
|
||||||
if (!userLeaving) {
|
if (!userLeaving) {
|
||||||
@@ -1162,13 +1162,67 @@ public class RoomActivity extends BaseMvpActivity<RoomPresenter, ActivityRoomBin
|
|||||||
if (isFullScreen) {
|
if (isFullScreen) {
|
||||||
exitFullScreen();
|
exitFullScreen();
|
||||||
} else {
|
} else {
|
||||||
enterFullScreen();
|
// enterFullScreen();
|
||||||
|
|
||||||
|
// 修改为横屏展示模式而不是全屏模式
|
||||||
|
enterLandscapeMode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private void enterLandscapeMode() {
|
||||||
|
isFullScreen = true;
|
||||||
|
|
||||||
|
// 设置横屏
|
||||||
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
|
||||||
|
|
||||||
|
if (floatingMagnetView != null) {
|
||||||
|
// 修改Floa组件的布局参数,使其在横屏时占据更大区域
|
||||||
|
ViewGroup.LayoutParams layoutParams = floatingMagnetView.getLayoutParams();
|
||||||
|
if (layoutParams instanceof ConstraintLayout.LayoutParams) {
|
||||||
|
ConstraintLayout.LayoutParams params = (ConstraintLayout.LayoutParams) layoutParams;
|
||||||
|
params.width = ConstraintLayout.LayoutParams.MATCH_CONSTRAINT;
|
||||||
|
params.height = ConstraintLayout.LayoutParams.MATCH_CONSTRAINT;
|
||||||
|
params.horizontalBias = 0.5f;
|
||||||
|
params.verticalBias = 0.5f;
|
||||||
|
floatingMagnetView.setLayoutParams(params);
|
||||||
|
} else {
|
||||||
|
// 如果不是ConstraintLayout.LayoutParams,创建新的
|
||||||
|
ConstraintLayout.LayoutParams params = new ConstraintLayout.LayoutParams(
|
||||||
|
ConstraintLayout.LayoutParams.MATCH_CONSTRAINT,
|
||||||
|
ConstraintLayout.LayoutParams.MATCH_CONSTRAINT
|
||||||
|
);
|
||||||
|
params.topToTop = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
|
params.bottomToBottom = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
|
params.startToStart = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
|
params.endToEnd = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
|
floatingMagnetView.setLayoutParams(params);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 可以调整内部fl_screenshare的布局参数
|
||||||
|
FrameLayout flScreenshare = floatingMagnetView.findViewById(R.id.fl_screenshare);
|
||||||
|
ViewGroup.LayoutParams screenParams = flScreenshare.getLayoutParams();
|
||||||
|
if (!(screenParams instanceof FrameLayout.LayoutParams)) {
|
||||||
|
// 如果不是FrameLayout.LayoutParams,创建新的
|
||||||
|
FrameLayout.LayoutParams newScreenParams = new FrameLayout.LayoutParams(
|
||||||
|
FrameLayout.LayoutParams.MATCH_PARENT,
|
||||||
|
FrameLayout.LayoutParams.MATCH_PARENT
|
||||||
|
);
|
||||||
|
flScreenshare.setLayoutParams(newScreenParams);
|
||||||
|
} else {
|
||||||
|
FrameLayout.LayoutParams newScreenParams = (FrameLayout.LayoutParams) screenParams;
|
||||||
|
newScreenParams.width = FrameLayout.LayoutParams.MATCH_PARENT;
|
||||||
|
newScreenParams.height = FrameLayout.LayoutParams.MATCH_PARENT;
|
||||||
|
flScreenshare.setLayoutParams(newScreenParams);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 显示退出按钮
|
||||||
|
ivQuan.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
}
|
||||||
private void enterFullScreen() {
|
private void enterFullScreen() {
|
||||||
isFullScreen = true;
|
isFullScreen = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 隐藏系统UI
|
// 隐藏系统UI
|
||||||
View decorView = getWindow().getDecorView();
|
View decorView = getWindow().getDecorView();
|
||||||
decorView.setSystemUiVisibility(
|
decorView.setSystemUiVisibility(
|
||||||
@@ -1194,46 +1248,77 @@ public class RoomActivity extends BaseMvpActivity<RoomPresenter, ActivityRoomBin
|
|||||||
safelyMoveViewToParent(fl_screenshare, floatingMagnetView);
|
safelyMoveViewToParent(fl_screenshare, floatingMagnetView);
|
||||||
// 显示全屏容器
|
// 显示全屏容器
|
||||||
fullScreenContainer.setVisibility(View.VISIBLE);
|
fullScreenContainer.setVisibility(View.VISIBLE);
|
||||||
// floatingMagnetView.setVisibility(View.GONE);
|
floatingMagnetView.setVisibility(View.GONE);
|
||||||
ivExitFullscreen.setVisibility(View.VISIBLE); // 显示退出按钮
|
ivExitFullscreen.setVisibility(View.VISIBLE); // 显示退出按钮
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void exitFullScreen() {
|
private void exitFullScreen() {
|
||||||
|
|
||||||
isFullScreen = false;
|
isFullScreen = false;
|
||||||
// 恢复系统UI
|
|
||||||
View decorView = getWindow().getDecorView();
|
|
||||||
// decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
|
|
||||||
decorView.setSystemUiVisibility(
|
|
||||||
View.SYSTEM_UI_FLAG_FULLSCREEN
|
|
||||||
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
|
||||||
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
|
||||||
);
|
|
||||||
// 设置回竖屏
|
// 设置回竖屏
|
||||||
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
|
||||||
// 找到 fl_screenshare 并移回原父容器
|
|
||||||
FrameLayout fl_screenshare = findViewById(R.id.fl_screenshare);
|
|
||||||
if (fl_screenshare != null) {
|
|
||||||
safelyMoveViewToParent(fl_screenshare, fullScreenContainer);
|
|
||||||
// ViewParent parent = fl_screenshare.getParent();
|
|
||||||
// if (parent instanceof ViewGroup) {
|
|
||||||
// ((ViewGroup) parent).removeView(fl_screenshare);
|
|
||||||
// }
|
|
||||||
// // 添加到全屏容器
|
|
||||||
// fullScreenContainer.addView(fl_screenshare);
|
|
||||||
// 找到原始父容器并重新添加
|
|
||||||
// FrameLayout originalParent = findViewById(R.id.fullscreen_container); // 或者你实际的容器
|
|
||||||
// if (originalParent != null) {
|
|
||||||
// originalParent.removeView(fl_screenshare); // 防止重复添加
|
|
||||||
// }
|
|
||||||
|
|
||||||
// floatingMagnetView.addView(fl_screenshare);
|
if (floatingMagnetView != null) {
|
||||||
|
// 恢复原始尺寸
|
||||||
|
ConstraintLayout.LayoutParams params = new ConstraintLayout.LayoutParams(
|
||||||
|
getResources().getDimensionPixelSize(com.xscm.moduleutil.R.dimen.dp_240),
|
||||||
|
getResources().getDimensionPixelSize(com.xscm.moduleutil.R.dimen.dp_135)
|
||||||
|
);
|
||||||
|
params.topToTop = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
|
params.bottomToBottom = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
|
params.startToStart = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
|
params.endToEnd = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
|
floatingMagnetView.setLayoutParams(params);
|
||||||
|
|
||||||
|
// 恢复内部fl_screenshare的布局参数
|
||||||
|
FrameLayout flScreenshare = floatingMagnetView.findViewById(R.id.fl_screenshare);
|
||||||
|
FrameLayout.LayoutParams screenParams = new FrameLayout.LayoutParams(
|
||||||
|
FrameLayout.LayoutParams.MATCH_PARENT,
|
||||||
|
FrameLayout.LayoutParams.MATCH_PARENT
|
||||||
|
);
|
||||||
|
flScreenshare.setLayoutParams(screenParams);
|
||||||
}
|
}
|
||||||
// 恢复界面
|
|
||||||
fullScreenContainer.setVisibility(View.GONE);
|
// 隐藏退出按钮
|
||||||
floatingMagnetView.setVisibility(View.VISIBLE);
|
ivExitFullscreen.setVisibility(View.GONE);
|
||||||
ivQuan.setVisibility(View.VISIBLE);
|
|
||||||
ivExitFullscreen.setVisibility(View.GONE); // 隐藏退出按钮
|
|
||||||
|
// isFullScreen = false;
|
||||||
|
// // 恢复系统UI
|
||||||
|
// View decorView = getWindow().getDecorView();
|
||||||
|
//// decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
|
||||||
|
// decorView.setSystemUiVisibility(
|
||||||
|
// View.SYSTEM_UI_FLAG_FULLSCREEN
|
||||||
|
// | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||||
|
// | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||||
|
// );
|
||||||
|
// // 设置回竖屏
|
||||||
|
// setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
|
||||||
|
// // 找到 fl_screenshare 并移回原父容器
|
||||||
|
// FrameLayout fl_screenshare = findViewById(R.id.fl_screenshare);
|
||||||
|
// if (fl_screenshare != null) {
|
||||||
|
// safelyMoveViewToParent(fl_screenshare, fullScreenContainer);
|
||||||
|
//// ViewParent parent = fl_screenshare.getParent();
|
||||||
|
//// if (parent instanceof ViewGroup) {
|
||||||
|
//// ((ViewGroup) parent).removeView(fl_screenshare);
|
||||||
|
//// }
|
||||||
|
//// // 添加到全屏容器
|
||||||
|
//// fullScreenContainer.addView(fl_screenshare);
|
||||||
|
// // 找到原始父容器并重新添加
|
||||||
|
//// FrameLayout originalParent = findViewById(R.id.fullscreen_container); // 或者你实际的容器
|
||||||
|
//// if (originalParent != null) {
|
||||||
|
//// originalParent.removeView(fl_screenshare); // 防止重复添加
|
||||||
|
//// }
|
||||||
|
//
|
||||||
|
//// floatingMagnetView.addView(fl_screenshare);
|
||||||
|
// }
|
||||||
|
// // 恢复界面
|
||||||
|
// fullScreenContainer.setVisibility(View.GONE);
|
||||||
|
// floatingMagnetView.setVisibility(View.VISIBLE);
|
||||||
|
// ivQuan.setVisibility(View.VISIBLE);
|
||||||
|
// ivExitFullscreen.setVisibility(View.GONE); // 隐藏退出按钮
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -1471,7 +1556,7 @@ public class RoomActivity extends BaseMvpActivity<RoomPresenter, ActivityRoomBin
|
|||||||
.commitAllowingStateLoss();
|
.commitAllowingStateLoss();
|
||||||
}
|
}
|
||||||
roomFragment.handleMsgType1028(messageEvent);
|
roomFragment.handleMsgType1028(messageEvent);
|
||||||
}else if ( msgType == 1058) {
|
} else if (msgType == 1058) {
|
||||||
if (roomFragment == null) {
|
if (roomFragment == null) {
|
||||||
roomFragment = RoomFragment.newInstance();
|
roomFragment = RoomFragment.newInstance();
|
||||||
getSupportFragmentManager()
|
getSupportFragmentManager()
|
||||||
@@ -2627,8 +2712,8 @@ public class RoomActivity extends BaseMvpActivity<RoomPresenter, ActivityRoomBin
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else {
|
} else {
|
||||||
return true ;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,11 +141,11 @@ public class RoomSettingFragment extends BaseMvpDialogFragment<RoomSettingPresen
|
|||||||
// 添加标题和对应的内容项
|
// 添加标题和对应的内容项
|
||||||
dataList.add(new RoomSettingBean("房间类型", null, null, null, -1, read, isSelected, false, false));
|
dataList.add(new RoomSettingBean("房间类型", null, null, null, -1, read, isSelected, false, false));
|
||||||
dataList.add(new RoomSettingBean("点唱", "ic_sing", null, null, RoomSettingBean.QXRoomSettingTypeRoomTypeSing, read, isSelected, false, false));
|
dataList.add(new RoomSettingBean("点唱", "ic_sing", null, null, RoomSettingBean.QXRoomSettingTypeRoomTypeSing, read, isSelected, false, false));
|
||||||
dataList.add(new RoomSettingBean("拍卖", "ic_auction", null, null, RoomSettingBean.QXRoomSettingTypeRoomTypeAuction, read, isSelected, false, false));
|
// dataList.add(new RoomSettingBean("拍卖", "ic_auction", null, null, RoomSettingBean.QXRoomSettingTypeRoomTypeAuction, read, isSelected, false, false));
|
||||||
// dataList.add(new RoomSettingBean("男神", "ic_boy", null, null, RoomSettingBean.QXRoomSettingTypeRoomTypeBoy, read, isSelected, false, false));
|
dataList.add(new RoomSettingBean("男神", "ic_boy", null, null, RoomSettingBean.QXRoomSettingTypeRoomTypeBoy, read, isSelected, false, false));
|
||||||
// dataList.add(new RoomSettingBean("女神", "ic_girl", null, null, RoomSettingBean.QXRoomSettingTypeRoomTypeGirl, read, isSelected, false, false));
|
dataList.add(new RoomSettingBean("女神", "ic_girl", null, null, RoomSettingBean.QXRoomSettingTypeRoomTypeGirl, read, isSelected, false, false));
|
||||||
dataList.add(new RoomSettingBean(" 交友", "jiao_y", null, null, RoomSettingBean.QXRoomSettingTypeRoomTypeHUYU, read, isSelected, false, false));// 添加的新的房间类型 ,交友 ,是原来的男神女神类型
|
// dataList.add(new RoomSettingBean(" 交友", "jiao_y", null, null, RoomSettingBean.QXRoomSettingTypeRoomTypeHUYU, read, isSelected, false, false));// 添加的新的房间类型 ,交友 ,是原来的男神女神类型
|
||||||
dataList.add(new RoomSettingBean(" 互娱", "ic_jiaoy", null, null, RoomSettingBean.QXRoomSettingTypeRoomTypeJiaoy, read, isSelected, false, false)); //原交友,更改互娱 2025年9月19日11:18:01
|
// dataList.add(new RoomSettingBean(" 互娱", "ic_jiaoy", null, null, RoomSettingBean.QXRoomSettingTypeRoomTypeJiaoy, read, isSelected, false, false)); //原交友,更改互娱 2025年9月19日11:18:01
|
||||||
|
|
||||||
|
|
||||||
dataList.add(new RoomSettingBean("常用工具", null, null, null, -1, read, isSelected, false, false));
|
dataList.add(new RoomSettingBean("常用工具", null, null, null, -1, read, isSelected, false, false));
|
||||||
@@ -266,14 +266,14 @@ public class RoomSettingFragment extends BaseMvpDialogFragment<RoomSettingPresen
|
|||||||
// MvpPre.changeRoomType(roomId, "2");
|
// MvpPre.changeRoomType(roomId, "2");
|
||||||
queren("2");
|
queren("2");
|
||||||
}
|
}
|
||||||
// else if (bean.getType() == RoomSettingBean.QXRoomSettingTypeRoomTypeBoy) {
|
else if (bean.getType() == RoomSettingBean.QXRoomSettingTypeRoomTypeBoy) {
|
||||||
//// MvpPre.changeRoomType(roomId, "3");
|
// MvpPre.changeRoomType(roomId, "3");
|
||||||
// queren("3");
|
queren("3");
|
||||||
// }
|
}
|
||||||
// else if (bean.getType() == RoomSettingBean.QXRoomSettingTypeRoomTypeGirl) {
|
else if (bean.getType() == RoomSettingBean.QXRoomSettingTypeRoomTypeGirl) {
|
||||||
//// MvpPre.changeRoomType(roomId, "4");
|
// MvpPre.changeRoomType(roomId, "4");
|
||||||
// queren("4");
|
queren("4");
|
||||||
// }
|
}
|
||||||
else if (bean.getType() == RoomSettingBean.QXRoomSettingTypeRoomTypeJiaoy) {
|
else if (bean.getType() == RoomSettingBean.QXRoomSettingTypeRoomTypeJiaoy) {
|
||||||
// MvpPre.changeRoomType(roomId, "7");
|
// MvpPre.changeRoomType(roomId, "7");
|
||||||
queren("7");
|
queren("7");
|
||||||
@@ -341,11 +341,13 @@ public class RoomSettingFragment extends BaseMvpDialogFragment<RoomSettingPresen
|
|||||||
// 房主显示全部
|
// 房主显示全部
|
||||||
if (roleLevel == 1) {
|
if (roleLevel == 1) {
|
||||||
if (onMic) {
|
if (onMic) {
|
||||||
if (type == RoomSettingBean.QXRoomSettingTypeRoomBgMusic) {
|
if (type == RoomSettingBean.QXRoomSettingTypeRoomBgMusic || type==RoomSettingBean.QXRoomSettingTypeRoomTypeAuction || type==RoomSettingBean.QXRoomSettingTypeRoomTypeJiaoy
|
||||||
|
|| type==RoomSettingBean.QXRoomSettingTypeRoomTypeHUYU) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
if (type==RoomSettingBean.QXRoomSettingTypeRoomBgMusic){
|
if (type==RoomSettingBean.QXRoomSettingTypeRoomBgMusic || type==RoomSettingBean.QXRoomSettingTypeRoomTypeAuction || type==RoomSettingBean.QXRoomSettingTypeRoomTypeJiaoy
|
||||||
|
|| type==RoomSettingBean.QXRoomSettingTypeRoomTypeHUYU){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -357,11 +359,13 @@ public class RoomSettingFragment extends BaseMvpDialogFragment<RoomSettingPresen
|
|||||||
type == RoomSettingBean.QXRoomSettingTypeRoomClearMessage || type == QXRoomSettingTypeRoomOrderMic || type == RoomSettingBean.QXRoomSettingTypeRoomFloatingScreen
|
type == RoomSettingBean.QXRoomSettingTypeRoomClearMessage || type == QXRoomSettingTypeRoomOrderMic || type == RoomSettingBean.QXRoomSettingTypeRoomFloatingScreen
|
||||||
|| type == RoomSettingBean.QXRoomSettingTypeRoomBgMusic || type == RoomSettingBean.QXRoomSettingTypeRoomBgImage || type == -1) {
|
|| type == RoomSettingBean.QXRoomSettingTypeRoomBgMusic || type == RoomSettingBean.QXRoomSettingTypeRoomBgImage || type == -1) {
|
||||||
if (onMic) {
|
if (onMic) {
|
||||||
if (type == RoomSettingBean.QXRoomSettingTypeRoomBgMusic) {
|
if (type == RoomSettingBean.QXRoomSettingTypeRoomBgMusic || type==RoomSettingBean.QXRoomSettingTypeRoomTypeAuction || type==RoomSettingBean.QXRoomSettingTypeRoomTypeJiaoy
|
||||||
|
|| type==RoomSettingBean.QXRoomSettingTypeRoomTypeHUYU) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
if (type==RoomSettingBean.QXRoomSettingTypeRoomBgMusic){
|
if (type==RoomSettingBean.QXRoomSettingTypeRoomBgMusic || type==RoomSettingBean.QXRoomSettingTypeRoomTypeAuction || type==RoomSettingBean.QXRoomSettingTypeRoomTypeJiaoy
|
||||||
|
|| type==RoomSettingBean.QXRoomSettingTypeRoomTypeHUYU){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -372,7 +376,8 @@ public class RoomSettingFragment extends BaseMvpDialogFragment<RoomSettingPresen
|
|||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}else {
|
}else {
|
||||||
if (type == RoomSettingBean.QXRoomSettingTypeRoomBgMusic){
|
if (type == RoomSettingBean.QXRoomSettingTypeRoomBgMusic || type==RoomSettingBean.QXRoomSettingTypeRoomTypeAuction || type==RoomSettingBean.QXRoomSettingTypeRoomTypeJiaoy
|
||||||
|
|| type==RoomSettingBean.QXRoomSettingTypeRoomTypeHUYU){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -418,7 +418,7 @@ public class RoomUserInfoFragment extends BaseMvpDialogFragment<RoomUserPresente
|
|||||||
setTextViewStyle(mBinding.textView2, false);
|
setTextViewStyle(mBinding.textView2, false);
|
||||||
setTextViewStyle(mBinding.textView1, true);
|
setTextViewStyle(mBinding.textView1, true);
|
||||||
if (userInfo.getQinmi() != null && !userInfo.getQinmi().equals("")) {
|
if (userInfo.getQinmi() != null && !userInfo.getQinmi().equals("")) {
|
||||||
mBinding.ll.setVisibility(VISIBLE);
|
mBinding.ll.setVisibility(GONE);
|
||||||
mBinding.ll.setBackgroundResource(com.xscm.moduleutil.R.mipmap.guxi_k);
|
mBinding.ll.setBackgroundResource(com.xscm.moduleutil.R.mipmap.guxi_k);
|
||||||
// mBinding.rlReqit.setBackgroundResource(com.qxcm.moduleutil.R.mipmap.regit_t);
|
// mBinding.rlReqit.setBackgroundResource(com.qxcm.moduleutil.R.mipmap.regit_t);
|
||||||
ImageUtils.loadHeadCC(userInfo.getQinmi().getAvatar1(), mBinding.userNav1);
|
ImageUtils.loadHeadCC(userInfo.getQinmi().getAvatar1(), mBinding.userNav1);
|
||||||
@@ -435,7 +435,7 @@ public class RoomUserInfoFragment extends BaseMvpDialogFragment<RoomUserPresente
|
|||||||
setTextViewStyle(mBinding.textView2, true);
|
setTextViewStyle(mBinding.textView2, true);
|
||||||
setTextViewStyle(mBinding.textView1, false);
|
setTextViewStyle(mBinding.textView1, false);
|
||||||
if (userInfo.getZhenai() != null && !userInfo.getZhenai().equals("")) {
|
if (userInfo.getZhenai() != null && !userInfo.getZhenai().equals("")) {
|
||||||
mBinding.ll.setVisibility(VISIBLE);
|
mBinding.ll.setVisibility(GONE);
|
||||||
mBinding.ll.setBackgroundResource(com.xscm.moduleutil.R.mipmap.guxi_w);
|
mBinding.ll.setBackgroundResource(com.xscm.moduleutil.R.mipmap.guxi_w);
|
||||||
// mBinding.rlReqit.setBackgroundResource(com.qxcm.moduleutil.R.mipmap.guanxiw_z);
|
// mBinding.rlReqit.setBackgroundResource(com.qxcm.moduleutil.R.mipmap.guanxiw_z);
|
||||||
ImageUtils.loadHeadCC(userInfo.getZhenai().getAvatar1(), mBinding.userNav1);
|
ImageUtils.loadHeadCC(userInfo.getZhenai().getAvatar1(), mBinding.userNav1);
|
||||||
|
|||||||
@@ -210,8 +210,12 @@ public class RoomCabinFragment extends BaseRoomFragment<RoomCabinPresenter, Room
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if (!CommonAppContext.getInstance().isShowAg){
|
||||||
|
switchMic(1);
|
||||||
|
}else {
|
||||||
isShow = true;
|
isShow = true;
|
||||||
switchMic(2);
|
switchMic(2);
|
||||||
|
}
|
||||||
|
|
||||||
mBinding.im3.setOnClickListener(new View.OnClickListener() {
|
mBinding.im3.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@@ -344,6 +348,7 @@ public class RoomCabinFragment extends BaseRoomFragment<RoomCabinPresenter, Room
|
|||||||
AgoraManager.getInstance(getActivity()).muteLocalAudioStream(false);
|
AgoraManager.getInstance(getActivity()).muteLocalAudioStream(false);
|
||||||
AgoraManager.getInstance(getActivity()).setLocalAudioEnabled(true,SpUtil.getUserId()+"");
|
AgoraManager.getInstance(getActivity()).setLocalAudioEnabled(true,SpUtil.getUserId()+"");
|
||||||
isShow = false;
|
isShow = false;
|
||||||
|
CommonAppContext.getInstance().isShowAg=false;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
mBinding.im1.setImageResource(com.xscm.moduleutil.R.mipmap.op_m);
|
mBinding.im1.setImageResource(com.xscm.moduleutil.R.mipmap.op_m);
|
||||||
@@ -351,6 +356,7 @@ public class RoomCabinFragment extends BaseRoomFragment<RoomCabinPresenter, Room
|
|||||||
AgoraManager.getInstance(getActivity()).muteLocalAudioStream(true);
|
AgoraManager.getInstance(getActivity()).muteLocalAudioStream(true);
|
||||||
AgoraManager.getInstance(getActivity()).setLocalAudioEnabled(false,SpUtil.getUserId()+"");
|
AgoraManager.getInstance(getActivity()).setLocalAudioEnabled(false,SpUtil.getUserId()+"");
|
||||||
isShow = true;
|
isShow = true;
|
||||||
|
CommonAppContext.getInstance().isShowAg=true;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -831,5 +837,6 @@ public class RoomCabinFragment extends BaseRoomFragment<RoomCabinPresenter, Room
|
|||||||
mediaProjection[0].stop();
|
mediaProjection[0].stop();
|
||||||
mediaProjection[0] = null;
|
mediaProjection[0] = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -273,7 +273,8 @@
|
|||||||
android:layout_marginEnd="@dimen/dp_16"
|
android:layout_marginEnd="@dimen/dp_16"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/room_rl_gift">
|
app:layout_constraintTop_toBottomOf="@+id/room_rl_gift"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView1"
|
android:id="@+id/textView1"
|
||||||
@@ -327,7 +328,8 @@
|
|||||||
android:layout_height="@dimen/dp_140"
|
android:layout_height="@dimen/dp_140"
|
||||||
android:background="@mipmap/guxi_k"
|
android:background="@mipmap/guxi_k"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/custom_tab_layout">
|
app:layout_constraintTop_toBottomOf="@+id/custom_tab_layout"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
<com.makeramen.roundedimageview.RoundedImageView
|
<com.makeramen.roundedimageview.RoundedImageView
|
||||||
android:id="@+id/user_nav1"
|
android:id="@+id/user_nav1"
|
||||||
|
|||||||
Reference in New Issue
Block a user