QuickPermissions-Kotlin
QuickPermissions-Kotlin copied to clipboard
Allow to customize the strings of the dialog buttons
I'm working in an app which supports Arabic language interface and I want to change the strings of the dialog action buttons that are displayed whenever a dialog is shown.
It's currently hard-coded in the com.livinglifetechway.quickpermissions_kotlin.util.PermissionCheckerFragment:
activity?.alert { message = quickPermissionsRequest?.rationaleMessage.orEmpty() positiveButton("TRY AGAIN") { requestPermissionsFromUser() } negativeButton("CANCEL") { clean() } }?.apply { isCancelable = false }?.show()
Suggestion : can we support the strings of negativeButton and positiveButton in the QuickPermissionsRequest?