Home > Software engineering >  Stop language changes in app after locale changes
Stop language changes in app after locale changes

Time:01-20

I use a runtime permission library called Kpermission to request permission, but the issue is the permission request follows device language and not app language

CodePudding user response:

You can't. Instead of changing better you display your custom dialog before requesting permission to explain you the purpose of permission

You can check this link https://developer.android.com/training/permissions/requesting.html

Note: Your app cannot customize the dialog that appears when you call launch(). To provide more information or context to the user, change your app's UI so that it's easier for users to understand why a feature in your app needs a particular permission. For example, you might change the text in the button that enables the feature.

Also, the text in the system permission dialog references the permission group associated with the permission that you requested. This permission grouping is designed for system ease-of-use, and your app shouldn't rely on permissions being within or outside of a specific permission group.

Example Custom Dialog Permission

  • Related