调整直播间UI

修复心愿单浮窗一堆问题
This commit is contained in:
2023-04-08 15:45:47 +08:00
parent 9c3fbe0506
commit 9707898af9
8 changed files with 84 additions and 27 deletions

View File

@@ -371,6 +371,7 @@ public class LiveNetManager {
}, new Consumer<Throwable>() {
@Override
public void accept(Throwable throwable) throws Exception {
Log.e("异常", "checkLive: ",throwable);
if (callBack != null) {
callBack.onError(throwable.getMessage());
}

View File

@@ -2,6 +2,8 @@ package com.yunbao.common.utils;
import android.app.Activity;
import com.yunbao.common.BuildConfig;
import java.util.Stack;
public class AppManager {
@@ -114,6 +116,15 @@ public class AppManager {
activityStack.clear();
}
/**
*仅在debug下运行的代码
*/
public static void runDebugCode(Runnable runnable) {
if (BuildConfig.DEBUG) {
runnable.run();
}
}
/**
* 退出应用程序