mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-08-15 03:40:46 +02:00
fix: remove left over not existing code references
This commit is contained in:
parent
3427f885fb
commit
ac81695747
@ -26,9 +26,6 @@ import app.revanced.integrations.settings.SettingsEnum;
|
|||||||
import app.revanced.integrations.utils.LogHelper;
|
import app.revanced.integrations.utils.LogHelper;
|
||||||
import app.revanced.integrations.utils.ReVancedUtils;
|
import app.revanced.integrations.utils.ReVancedUtils;
|
||||||
import app.revanced.integrations.utils.SharedPrefHelper;
|
import app.revanced.integrations.utils.SharedPrefHelper;
|
||||||
import app.revanced.integrations.videoplayer.AutoRepeat;
|
|
||||||
import app.revanced.integrations.videoplayer.Copy;
|
|
||||||
import app.revanced.integrations.videoplayer.CopyWithTimeStamp;
|
|
||||||
import app.revanced.integrations.videoplayer.DownloadButton;
|
import app.revanced.integrations.videoplayer.DownloadButton;
|
||||||
|
|
||||||
public class ReVancedSettingsFragment extends PreferenceFragment {
|
public class ReVancedSettingsFragment extends PreferenceFragment {
|
||||||
@ -53,11 +50,6 @@ public class ReVancedSettingsFragment extends PreferenceFragment {
|
|||||||
if (pref instanceof SwitchPreference) {
|
if (pref instanceof SwitchPreference) {
|
||||||
SwitchPreference switchPref = (SwitchPreference) pref;
|
SwitchPreference switchPref = (SwitchPreference) pref;
|
||||||
setting.setValue(switchPref.isChecked());
|
setting.setValue(switchPref.isChecked());
|
||||||
|
|
||||||
if (setting == SettingsEnum.PREFERRED_AUTO_REPEAT) {
|
|
||||||
AutoRepeat.changeSelected(setting.getBoolean(), true);
|
|
||||||
}
|
|
||||||
|
|
||||||
} else if (pref instanceof EditTextPreference) {
|
} else if (pref instanceof EditTextPreference) {
|
||||||
EditTextPreference editPref = (EditTextPreference) pref;
|
EditTextPreference editPref = (EditTextPreference) pref;
|
||||||
Object value = null;
|
Object value = null;
|
||||||
@ -94,11 +86,7 @@ public class ReVancedSettingsFragment extends PreferenceFragment {
|
|||||||
LogHelper.printException(ReVancedSettingsFragment.class, "No valid setting found: " + setting.toString());
|
LogHelper.printException(ReVancedSettingsFragment.class, "No valid setting found: " + setting.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("pref_copy_video_url_timestamp_button_list".equals(str)) {
|
if ("pref_download_button_list".equals(str)) {
|
||||||
CopyWithTimeStamp.refreshShouldBeShown();
|
|
||||||
} else if ("pref_copy_video_url_button_list".equals(str)) {
|
|
||||||
Copy.refreshShouldBeShown();
|
|
||||||
} else if ("pref_download_button_list".equals(str)) {
|
|
||||||
DownloadButton.refreshShouldBeShown();
|
DownloadButton.refreshShouldBeShown();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user