Open Colourists opened 5 years ago
Following information can help us to resolve the issue faster.
Support-v4 version 我在APP类里初始化悬浮球
private void initFragmentStack() { int stackViewMode = Fragmentation.NONE; if (BuildConfig.DEBUG) { stackViewMode = Fragmentation.BUBBLE; } Fragmentation.builder() // 设置 栈视图 模式为 悬浮球模式 SHAKE: 摇一摇唤出 NONE:隐藏 .stackViewMode(stackViewMode) // ture时,遇到异常:"Can not perform this action after onSaveInstanceState!"时,会抛出 // false时,不会抛出,会捕获,可以在handleException()里监听到 .debug(BuildConfig.DEBUG) // 线上环境时,可能会遇到上述异常,此时debug=false,不会抛出该异常(避免crash),会捕获 // 建议在回调处上传至我们的Crash检测服务器 .handleException(new ExceptionHandler() { @Override public void onException(Exception e) { // CrashHandler.getInstance().handleException(e); // 以Bugtags为例子: 手动把捕获到的 Exception 传到 Bugtags 后台。 // Bugtags.sendException(e); } }).install(); }
开始可以使用,但是我在Activity两次设置
setContentView(R.layout.map_activity_loading_view); ..... setContentView(R.layout.map_activity);
之后就不可以使用了,无法在查看堆栈了,看不到悬浮球了
有什么方法可以解决吗?
Issues Guideline
Following information can help us to resolve the issue faster.
Support-v4 version 我在APP类里初始化悬浮球
开始可以使用,但是我在Activity两次设置
之后就不可以使用了,无法在查看堆栈了,看不到悬浮球了