Comments (2)
你好,android这边有个问题, 我看到聊天的类EaseChatFragment有引用EaseChatLayout, EaseChatLayout里面监听了群组事件 private class GroupListener extends EaseGroupListener {
@Override public void onUserRemoved(String groupId, String groupName) { finishCurrent(); } @Override public void onGroupDestroyed(String groupId, String groupName) { finishCurrent(); } }
private void finishCurrent() { if(getContext() instanceof Activity) { ((Activity) getContext()).finish(); } }
里面直接销毁了activity
但是我的项目是单activity,销毁会直接干掉整个app,但是这个又无法重载,能不能提供一下自定义的方法
感谢您的反馈,我们将尽快处理这个问题,预计会将销毁Activity的逻辑放到EaseChatFragment中,并且将这个方法public。
from easeui.
您好,关于销毁Activity,导致您项目被杀掉的问题,我们已经在 4.0.2 版本中,在EaseChatFragment中暴露了 public 的方法 onChatFinish ,它的默认实现为销毁当前的acitivty,您可以通过复写这个方法,修改对应的逻辑。
另,4.0.2 远程库地址为:implementation 'io.hyphenate:ease-im-kit:4.0.2'。
最后感谢您对uikit这个产品的使用和关注,如果您在使用过程中遇到不合理或者使用不方便的地方,请您通过issue及时反馈给我们。
from easeui.
Related Issues (20)
- Fragment onCreateView参数container为空,为什么不直接使用参数传递的inflater HOT 3
- java.lang.IllegalArgumentException HOT 3
- java.lang.ClassNotFoundException HOT 3
- 发现一个内存泄漏 HOT 2
- 百度地图初始化引起的Crash HOT 9
- kickAllDevices 方法问题 HOT 1
- 百度地图发送位置引起的两个内存泄露 HOT 2
- easeui那去了? HOT 1
- 消息发送成功回调 HOT 1
- 安卓10,点击通知没反应
- 整个项目就这个造成内存泄漏,不知前面哪位兄弟集成的 HOT 6
- Bbv HOT 1
- 聊天输入布局的按钮【发送】的字体太大了,不想改成本地集成 HOT 1
- 如何导入啊? 整个导入吗 HOT 1
- 开启混淆打包 R8编译异常 HOT 2
- EaseChatRow代码有个bug HOT 2
- 有没有flutter版本的easeui HOT 1
- checkDebugDuplicateClasses报错,与声网的一个库有重复文件夹,无法编译通过 HOT 1
- 语音消息问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easeui.