Skip to content

Commit

Permalink
Compare enabled as int instead of bool
Browse files Browse the repository at this point in the history
  • Loading branch information
bnichs authored and tien committed Nov 30, 2024
1 parent a788720 commit b086394
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ fun FilterRulesScreen(viewModel: FilterRulesViewModel = hiltViewModel()) {
supportingContent = {
Text(buildString {
rule.comment?.let { append(it) }
if (!rule.enabled) {
if (rule.enabled == 0) {
if (rule.comment != null) append(" ")
append("(")
append(Text(stringResource(R.string.filter_rules_disabled)))
Expand Down

0 comments on commit b086394

Please sign in to comment.