mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-11-18 18:09:23 +01:00
refactor: add debug log to SettingsFragment
This commit is contained in:
parent
68e7bdf2e1
commit
4106e8a198
@ -44,6 +44,8 @@ public class ReVancedSettingsFragment extends PreferenceFragment {
|
||||
for (SettingsEnum setting : SettingsEnum.values()) {
|
||||
if (!setting.getPath().equals(str)) continue;
|
||||
Preference pref = this.findPreferenceOnScreen(str);
|
||||
|
||||
LogHelper.debug(ReVancedSettingsFragment.class, "Setting " + setting.name() + " was changed. Preference " + str + ": " + pref.toString());
|
||||
|
||||
if (pref instanceof SwitchPreference) {
|
||||
SwitchPreference switchPref = (SwitchPreference) pref;
|
||||
@ -160,6 +162,7 @@ public class ReVancedSettingsFragment extends PreferenceFragment {
|
||||
Preference toCheck = screen.findPreference(key);
|
||||
if (toCheck == null) continue;
|
||||
pref = toCheck;
|
||||
LogHelper.debug(ReVancedSettingsFragment.class, "Found preference " + key + " on screen: " + screen.getTitle());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user