We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to disable the seekbar of a preference in a KPrefActivity when the KPrefSeekbar.KPrefSeekbarContract enabler is false.
KPrefActivity
KPrefSeekbar.KPrefSeekbarContract
false
This is my contract:
fun KPrefSeekbar.KPrefSeekbarContract.dependsOnLocationPermission() { enabler = { hasPermission(Manifest.permission.ACCESS_FINE_LOCATION) } onDisabledClick = { snackbar(R.string.requires_location_permission) } }
As you can see in this video, the preference is disabled, but the seekbar is still enabled. Can you guide me how to disable it?
The text was updated successfully, but these errors were encountered:
Disable location settings when location permission isn't granted
af330e4
Currently the seekbar is still enabled, but an issue for KAU has been opened: AllanWang/KAU#133
Thanks for the report. I would consider this as a bug, as I only disabled clicks when the preference is disabled. I will be fixing this shortly
Sorry, something went wrong.
You may use 91e4b0c immediately, or wait for the next release.
No branches or pull requests
I'm trying to disable the seekbar of a preference in a
KPrefActivity
when theKPrefSeekbar.KPrefSeekbarContract
enabler isfalse
.This is my contract:
As you can see in this video, the preference is disabled, but the seekbar is still enabled. Can you guide me how to disable it?
The text was updated successfully, but these errors were encountered: