mirror of
https://github.com/dzeiocom/OpenHealth.git
synced 2025-07-23 18:49:49 +00:00
fix: Button not set in response to the permission request
This commit is contained in:
@ -61,6 +61,7 @@ class BrowseFragment :
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (!hasPermission) {
|
if (!hasPermission) {
|
||||||
|
button = binding.steps
|
||||||
activityResult.launch(Manifest.permission.ACTIVITY_RECOGNITION)
|
activityResult.launch(Manifest.permission.ACTIVITY_RECOGNITION)
|
||||||
return@setOnClickListener
|
return@setOnClickListener
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user