Skip to content

Commit 81864a0

Browse files
kasnderclaude
andauthored
Restore host list settings visibility in minimal blocking mode (#547)
The blocking mode feature (commit 6946906) hid manage_blocklists, hosts_download, and hosts_auto_update preferences when in minimal mode. Since minimal is the default mode, this made host list management inaccessible. These settings should be visible in all blocking modes so users can always add and manage multiple host lists. https://claude.ai/code/session_01YQ1ZQzBTDC6tqCwWq7dyWP Co-authored-by: Claude <noreply@anthropic.com>
1 parent 29dc05d commit 81864a0

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

app/src/main/java/eu/faircode/netguard/ActivitySettings.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -393,14 +393,8 @@ public boolean onPreferenceClick(Preference preference) {
393393
if (p != null) p.setEnabled(false);
394394
}
395395

396-
// In minimal mode, hide hosts/blocklist management (not used) and strict_blocking
396+
// In minimal mode, hide domain_based_blocking (not used)
397397
if (BlockingMode.isMinimalMode(this) && cat_advanced != null) {
398-
Preference manageBlocklists = cat_advanced.findPreference("manage_blocklists");
399-
if (manageBlocklists != null) cat_advanced.removePreference(manageBlocklists);
400-
Preference hostsDownload = cat_advanced.findPreference("hosts_download");
401-
if (hostsDownload != null) cat_advanced.removePreference(hostsDownload);
402-
Preference hostsAutoUpdate = cat_advanced.findPreference("hosts_auto_update");
403-
if (hostsAutoUpdate != null) cat_advanced.removePreference(hostsAutoUpdate);
404398
Preference domainBlocking = cat_advanced.findPreference("domain_based_blocking");
405399
if (domainBlocking != null) cat_advanced.removePreference(domainBlocking);
406400
}

0 commit comments

Comments
 (0)