Skip to content
New issue

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

android: Add isEnabled setting item conditional check #595

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kleidis
Copy link
Contributor

@kleidis kleidis commented Mar 1, 2025

Now it is possible to have a conditional check for each setting type which once met will disable itself and re-enable once the condition is unmet again in real-time

@kleidis kleidis changed the title android: Allow checking for switch settings changes android: Allow checking for switch settings key changes Mar 1, 2025
@OpenSauce04
Copy link
Member

OpenSauce04 commented Mar 1, 2025

Hiding options can make it difficult for users to find a setting if they are unaware that it may be hidden.

This should only really be added if this implemented by greying out settings rather than hiding them.

@OpenSauce04 OpenSauce04 marked this pull request as draft March 1, 2025 23:06
@OpenSauce04 OpenSauce04 added the non-user-facing This doesn't affect and isn't visible to end users label Mar 1, 2025
@OpenSauce04
Copy link
Member

By the way, I would recommend that the functionality for this should be implemented in this PR, and actually applying it to the relevant settings should be applied in a follow-up PR, hence the label.

Co-authored-by: Charles Lombardo <[email protected]>
(Thanks to him for the idea of using DiffUtil)

Now it is possible to have a conditional check for each setting type which once met will disable itself and re-enable once the condition is unmet again in real-time
@kleidis kleidis force-pushed the android-diff-on-boolean-click branch from 7ec26ba to a6553c8 Compare March 2, 2025 01:23
@kleidis kleidis changed the title android: Allow checking for switch settings key changes android: Add isEnabled setting item conditional check Mar 2, 2025
@kleidis kleidis marked this pull request as ready for review March 2, 2025 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non-user-facing This doesn't affect and isn't visible to end users size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants