[KTX] onNeverAskAgain gets called when touch outside of permission dialog

Author: TurKurT656Created Sep 1, 2021Updated Sep 10, 2022
Labelsinquiry

Overview

  • When the permission dialog pops up, if user touches outside of the permission dialog, the onNeverAskAgain lambda gets executed instead on onPermissionDenied

Expected

  • Execution of onPermissionDenied when user touches outside the permission dialog

Actual

  • Execution of onNeverAskAgain when user touches outside the permission dialog

Environment

  • Which library version are you using? 1.1.2
  • On which devices do you observe the issue? All

Reproducible steps

  • Ask for a permission with permission.launch()
  • After the dialog pops up, touch outside of the dialog's area

Source: permissions-dispatcher/PermissionsDispatcher