Git Product home page Git Product logo

Comments (2)

jinanzhuan avatar jinanzhuan commented on July 29, 2024

你好,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.

jinanzhuan avatar jinanzhuan commented on July 29, 2024

您好,关于销毁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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.