mirror of
https://github.com/M66B/NetGuard.git
synced 2025-02-24 23:23:08 +00:00
Make sure user apps are shown when disabling manage system apps
Closes #220
This commit is contained in:
parent
dc0f756342
commit
8a33b7d6bb
1 changed files with 4 additions and 1 deletions
|
@ -320,7 +320,10 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere
|
|||
SinkholeService.reload("other", "setting changed", this);
|
||||
|
||||
} else if ("manage_system".equals(name)) {
|
||||
prefs.edit().putBoolean("show_system", prefs.getBoolean(name, false)).apply();
|
||||
boolean manage = prefs.getBoolean(name, false);
|
||||
if (!manage)
|
||||
prefs.edit().putBoolean("show_user", true).apply();
|
||||
prefs.edit().putBoolean("show_system", manage).apply();
|
||||
SinkholeService.reload(null, "setting changed", this);
|
||||
|
||||
} else if ("log".equals(name)) {
|
||||
|
|
Loading…
Reference in a new issue