Skip to content

File chooser delegate doesn't honor an OS contract, causing a crash in rare situations #338

@jhutarek

Description

@jhutarek

TurboFileChooserDelegate returns false from startIntent when destination is null or when the activity launch fails. However infrequent this might be, the problem is that Android has a contract on this return value when using filePathCallback - when the callback is used, the system expects true to be returned, which apparently means "I will handle it myself". When Turbo returns false, the system throws java.lang.IllegalStateException: Duplicate showFileChooser result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions