mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-07 10:35:49 +01:00
refactor: remove no longer used feature. was added from youtube already (#36)
This commit is contained in:
parent
0ce6aa854c
commit
20310146dd
@ -73,19 +73,6 @@ public class AdRemoverAPI {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes the Suggestions
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static void hideSuggestions(View view) {
|
|
||||||
String message = SettingsEnum.SUGGESTIONS_SHOWN_BOOLEAN.getBoolean() ? "Infocard suggestions: shown" : "Infocards: hidden";
|
|
||||||
LogHelper.debug(AdRemoverAPI.class, message);
|
|
||||||
if (!SettingsEnum.SUGGESTIONS_SHOWN_BOOLEAN.getBoolean()) {
|
|
||||||
view.setVisibility(View.GONE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
private static void inspectComponentHost(Object item) {
|
private static void inspectComponentHost(Object item) {
|
||||||
StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
|
StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
package app.revanced.integrations.patches;
|
|
||||||
|
|
||||||
import android.view.View;
|
|
||||||
|
|
||||||
import app.revanced.integrations.adremover.AdRemoverAPI;
|
|
||||||
|
|
||||||
public class HideSuggestionsPatch {
|
|
||||||
|
|
||||||
public static void hideSuggestions(View view) {
|
|
||||||
AdRemoverAPI.hideSuggestions(view);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -23,7 +23,6 @@ public enum SettingsEnum {
|
|||||||
SHORTS_BUTTON_SHOWN_BOOLEAN("shorts_button_enabled", false),
|
SHORTS_BUTTON_SHOWN_BOOLEAN("shorts_button_enabled", false),
|
||||||
CAST_BUTTON_SHOWN_BOOLEAN("cast_button_enabled", false),
|
CAST_BUTTON_SHOWN_BOOLEAN("cast_button_enabled", false),
|
||||||
CREATE_BUTTON_SHOWN_BOOLEAN("revanced_create_button_enabled", false),
|
CREATE_BUTTON_SHOWN_BOOLEAN("revanced_create_button_enabled", false),
|
||||||
SUGGESTIONS_SHOWN_BOOLEAN("info_card_suggestions_enabled", false),
|
|
||||||
INFO_CARDS_SHOWN_BOOLEAN("info_cards_enabled", false),
|
INFO_CARDS_SHOWN_BOOLEAN("info_cards_enabled", false),
|
||||||
BRANDING_SHOWN_BOOLEAN("branding_watermark_enabled", false),
|
BRANDING_SHOWN_BOOLEAN("branding_watermark_enabled", false),
|
||||||
USE_TABLET_MINIPLAYER_BOOLEAN("tablet_miniplayer", false),
|
USE_TABLET_MINIPLAYER_BOOLEAN("tablet_miniplayer", false),
|
||||||
|
@ -98,8 +98,6 @@ public class ReVancedSettingsFragment extends PreferenceFragment {
|
|||||||
if (ReVancedUtils.getContext() != null && settingsInitialized) {
|
if (ReVancedUtils.getContext() != null && settingsInitialized) {
|
||||||
rebootDialog(getActivity());
|
rebootDialog(getActivity());
|
||||||
}
|
}
|
||||||
} else if (str.equals(SettingsEnum.SUGGESTIONS_SHOWN_BOOLEAN.getPath())) {
|
|
||||||
SettingsEnum.SUGGESTIONS_SHOWN_BOOLEAN.setValue(((SwitchPreference) layoutSettingsPreferenceScreen.findPreference(str)).isChecked());
|
|
||||||
} else if (str.equals(SettingsEnum.INFO_CARDS_SHOWN_BOOLEAN.getPath())) {
|
} else if (str.equals(SettingsEnum.INFO_CARDS_SHOWN_BOOLEAN.getPath())) {
|
||||||
SettingsEnum.INFO_CARDS_SHOWN_BOOLEAN.setValue(((SwitchPreference) layoutSettingsPreferenceScreen.findPreference(str)).isChecked());
|
SettingsEnum.INFO_CARDS_SHOWN_BOOLEAN.setValue(((SwitchPreference) layoutSettingsPreferenceScreen.findPreference(str)).isChecked());
|
||||||
} else if (str.equals(SettingsEnum.BRANDING_SHOWN_BOOLEAN.getPath())) {
|
} else if (str.equals(SettingsEnum.BRANDING_SHOWN_BOOLEAN.getPath())) {
|
||||||
|
@ -43,7 +43,6 @@
|
|||||||
<PreferenceScreen android:title="@string/revanced_layout_settings_title" android:key="layout_settings">
|
<PreferenceScreen android:title="@string/revanced_layout_settings_title" android:key="layout_settings">
|
||||||
<SwitchPreference android:title="@string/revanced_reel_title" android:key="reel_enabled" android:defaultValue="true" android:summaryOn="@string/revanced_reel_summary_on" android:summaryOff="@string/revanced_reel_summary_off" />
|
<SwitchPreference android:title="@string/revanced_reel_title" android:key="reel_enabled" android:defaultValue="true" android:summaryOn="@string/revanced_reel_summary_on" android:summaryOff="@string/revanced_reel_summary_off" />
|
||||||
<SwitchPreference android:title="@string/revanced_suggestion_title" android:key="info_cards_enabled" android:defaultValue="true" android:summaryOn="@string/revanced_suggestion_summary_on" android:summaryOff="@string/revanced_suggestion_summary_off" />
|
<SwitchPreference android:title="@string/revanced_suggestion_title" android:key="info_cards_enabled" android:defaultValue="true" android:summaryOn="@string/revanced_suggestion_summary_on" android:summaryOff="@string/revanced_suggestion_summary_off" />
|
||||||
<SwitchPreference android:title="@string/revanced_info_cards_title" android:key="info_card_suggestions_enabled" android:defaultValue="true" android:summaryOn="@string/revanced_info_cards_summary_on" android:summaryOff="@string/revanced_info_cards_summary_off" />
|
|
||||||
<SwitchPreference android:title="@string/revanced_branding_watermark_title" android:key="branding_watermark_enabled" android:defaultValue="true" android:summaryOn="@string/revanced_branding_watermark_summary_on" android:summaryOff="@string/revanced_branding_watermark_summary_off" />
|
<SwitchPreference android:title="@string/revanced_branding_watermark_title" android:key="branding_watermark_enabled" android:defaultValue="true" android:summaryOn="@string/revanced_branding_watermark_summary_on" android:summaryOff="@string/revanced_branding_watermark_summary_off" />
|
||||||
<SwitchPreference android:title="@string/revanced_cast_button_title" android:key="cast_button_enabled" android:defaultValue="true" android:summaryOn="@string/revanced_cast_button_summary_on" android:summaryOff="@string/revanced_cast_button_summary_off" />
|
<SwitchPreference android:title="@string/revanced_cast_button_title" android:key="cast_button_enabled" android:defaultValue="true" android:summaryOn="@string/revanced_cast_button_summary_on" android:summaryOff="@string/revanced_cast_button_summary_off" />
|
||||||
<SwitchPreference android:title="@string/revanced_tablet_miniplayer_title" android:key="tablet_miniplayer" android:defaultValue="false" android:summaryOn="@string/revanced_tablet_miniplayer_summary_on" android:summaryOff="@string/revanced_tablet_miniplayer_summary_off" />
|
<SwitchPreference android:title="@string/revanced_tablet_miniplayer_title" android:key="tablet_miniplayer" android:defaultValue="false" android:summaryOn="@string/revanced_tablet_miniplayer_summary_on" android:summaryOff="@string/revanced_tablet_miniplayer_summary_off" />
|
||||||
|
Loading…
Reference in New Issue
Block a user