QuickPermissions-Kotlin icon indicating copy to clipboard operation
QuickPermissions-Kotlin copied to clipboard

Allow to customize the strings of the dialog buttons

Open Joseph-Gayed opened this issue 3 years ago • 0 comments

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?

Joseph-Gayed avatar May 06 '21 11:05 Joseph-Gayed