Skip to content

[image_picker] Android uses non-public function #177673

@stuartmorgan-g

Description

@stuartmorgan-g

flutter/packages#6201 introduced the following code:

    if (ActivityResultContracts.PickVisualMedia.isSystemPickerAvailable$activity_release()) {
      return MediaStore.getPickImagesMaxLimit();
    } else {
      return Integer.MAX_VALUE;
    }

isSystemPickerAvailable... is not part of the docs, and looking locally in the IDE I see that this is a function marked internal, so if I'm understanding correctly, it should never have been used. Based on b/455864474 it appears that this will prevent working with activityx.activity 1.12.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listp: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions