Giter Club home page Giter Club logo

Comments (1)

ttimasdf avatar ttimasdf commented on July 24, 2024

补充复现:

用下面的代码片段创建一个空的share intent,并通过PackageManagerService查询能够接受分享的包列表。

        final Intent intent = new Intent(Intent.ACTION_SEND);
        intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        intent.setType("plain/text");

        final PackageManager pm = getPackageManager();
        final List<ResolveInfo> matches = pm.queryIntentActivities(intent, 0);

matches 列表末尾会包含一个无法解析的ResolveInfo,所有字段都是null,但 targetUserId 为10(壶中界的id)。

image

由于EMUI的应用选择框(com.huawei.android.internal.app.HwChooserActivity)也没有处理这个取值为null的异常,所以在Island外触发分享就会导致分享界面崩溃,但壶中界里面没有这个问题。

image

个人猜测可能是EMUI处理多用户的分享可能有问题,但我对安卓不太熟(上面的code snippet都是谷歌搜的 😅 ),请问这个算是Island引入的Bug还是垃圾EMUI?

from island.

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.