Skip to content

Settings Rationale dialog cannot be dismissed #18

@mattthefish

Description

@mattthefish

Hi,

When AppPermission.required = true, and the settings rationale is shown, it cannot be dismissed, and locks the user onto the dialog until the respective setting is accepted, as onDismiss is always empty

 if (PermissionManagerConfig.customSettingsUI != null) {
                    PermissionManagerConfig.customSettingsUI!!.invoke(
                        permission,
                        {}, // _empty onDismiss lambda here_
                        {
                            permissionState.showSettingsPopUp = false
                            permissionState.resumedFromSettings = true
                            openAppSettings(context)
                        }
                    )
                }

When I use AppPermission.required = false, the settings rationale does not appear at all (which is fair). But there is no way to control onDismiss, even if I try to edit it through setCustomSettingsUI.

Is it possible to add support for this?

Thanks :)

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