Commit b63f63c0 by 刘鹏

Merge branch 'fix/lp/lp_fix_maidian' into 'release'

feat: AVChatActivity加入堆栈管理

See merge request app_android_lib/YDL-Component!255
parents 2c553eb9 9328aae5
ext {
dev_mode = false //组件发布的时候需要设置为false
ydl2PublishVersion = "0.2.0.13"
ydl2PublishVersion = "0.2.0.14"
ydlPublishVersion = [
// -------------- 业务模块 --------------
//第三步 若干
......
......@@ -28,6 +28,7 @@ import com.netease.nimlib.sdk.avchat.model.AVChatData;
import com.netease.nimlib.sdk.avchat.model.AVChatOnlineAckEvent;
import com.netease.nimlib.sdk.avchat.model.AVChatVideoFrame;
import com.tbruyelle.rxpermissions2.RxPermissions;
import com.ydl.ydlcommon.utils.ActivityManager;
import com.ydl.ydlcommon.utils.log.AliYunLogConfig;
import com.ydl.ydlcommon.utils.log.AliYunRichLogsHelper;
import com.yidianling.avchatkit.AVChatKit;
......@@ -147,7 +148,7 @@ public class AVChatActivity extends AVChatBaseUI implements AVChatVideoUI.TouchZ
finish();
return;
}
ActivityManager.Companion.getInstance().addStack(this);
// 启动成功,取消timeout处理
AVChatProfile.getInstance().activityLaunched();
......@@ -202,6 +203,7 @@ public class AVChatActivity extends AVChatBaseUI implements AVChatVideoUI.TouchZ
@Override
protected void onDestroy() {
super.onDestroy();
ActivityManager.Companion.getInstance().removeStack(this);
//界面销毁时强制尝试挂断,防止出现红米Note 4X等手机在切后台点击杀死程序时,实际没有杀死的情况
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment