1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-27 02:09:41 +00:00

Remove resolved menu

Closes #326
This commit is contained in:
M66B 2016-02-21 12:27:05 +01:00
parent 6f51464651
commit 48bafdcf00

View file

@ -339,13 +339,14 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere
}
// Development
Preference pref_show_resolved = screen.findPreference("show_resolved");
if (!(Util.isDebuggable(this) || Util.getSelfVersionName(this).contains("beta"))) {
screen.removePreference(cat_development);
prefs.edit().remove("loglevel").apply();
}
} else if (!Util.isDebuggable(this))
cat_development.removePreference(pref_show_resolved);
// Show resolved
Preference pref_show_resolved = screen.findPreference("show_resolved");
pref_show_resolved.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference preference) {