Skip to content

Commit

Permalink
[app] dev settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tornaco committed Apr 28, 2022
1 parent 5c9d47f commit e559f9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,6 @@ protected void onBindPreferences() {
});
}

SwitchPreferenceCompat processManagerV2Pref = findPreference(getString(R.string.key_process_manage_ui_v2));
processManagerV2Pref.setChecked(AppPreference.isProcessManagerV2Enabled(requireContext()));
processManagerV2Pref.setOnPreferenceChangeListener((preference, newValue) -> {
boolean checked = (boolean) newValue;
AppPreference.setProcessManagerV2Enabled(requireContext(), checked);
return true;
});

findPreference(getString(R.string.key_rootless_support)).setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(@NonNull Preference preference) {
Expand Down
7 changes: 1 addition & 6 deletions android/app/src/main/res/xml/dev_settings_pref.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@
app:persistent="false"
app:title="@string/title_net_stats" />

<SwitchPreferenceCompat
app:key="@string/key_process_manage_ui_v2"
app:persistent="false"
app:title="New Process manager UI" />

<Preference
app:key="@string/key_rootless_support"
app:persistent="false"
app:title="NoRoot support" />
app:title="Non-Root support" />

<SwitchPreferenceCompat
app:key="@string/key_enable_global_white_list"
Expand Down

0 comments on commit e559f9f

Please sign in to comment.