mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-21 09:17:33 +01:00
chore(YouTube): Fix typos, simplify some strings for translating
This commit is contained in:
parent
c0764e9046
commit
eba73c5947
@ -79,10 +79,9 @@ public class ReturnYouTubeDislikePreferenceFragment extends PreferenceFragment {
|
|||||||
shortsPreference = new SwitchPreference(context);
|
shortsPreference = new SwitchPreference(context);
|
||||||
shortsPreference.setChecked(Settings.RYD_SHORTS.get());
|
shortsPreference.setChecked(Settings.RYD_SHORTS.get());
|
||||||
shortsPreference.setTitle(str("revanced_ryd_shorts_title"));
|
shortsPreference.setTitle(str("revanced_ryd_shorts_title"));
|
||||||
String shortsSummary = str("revanced_ryd_shorts_summary_on",
|
String shortsSummary = ReturnYouTubeDislikePatch.IS_SPOOFING_TO_NON_LITHO_SHORTS_PLAYER
|
||||||
ReturnYouTubeDislikePatch.IS_SPOOFING_TO_NON_LITHO_SHORTS_PLAYER
|
? str("revanced_ryd_shorts_summary_on")
|
||||||
? ""
|
: str("revanced_ryd_shorts_summary_on_disclaimer");
|
||||||
: "\n\n" + str("revanced_ryd_shorts_summary_disclaimer"));
|
|
||||||
shortsPreference.setSummaryOn(shortsSummary);
|
shortsPreference.setSummaryOn(shortsSummary);
|
||||||
shortsPreference.setSummaryOff(str("revanced_ryd_shorts_summary_off"));
|
shortsPreference.setSummaryOff(str("revanced_ryd_shorts_summary_off"));
|
||||||
shortsPreference.setOnPreferenceChangeListener((pref, newValue) -> {
|
shortsPreference.setOnPreferenceChangeListener((pref, newValue) -> {
|
||||||
|
@ -100,10 +100,10 @@ public class SponsorBlockPreferenceFragment extends PreferenceFragment {
|
|||||||
privateUserId.setEnabled(enabled);
|
privateUserId.setEnabled(enabled);
|
||||||
|
|
||||||
// If the user has a private user id, then include a subtext that mentions not to share it.
|
// If the user has a private user id, then include a subtext that mentions not to share it.
|
||||||
String exportSummarySubText = SponsorBlockSettings.userHasSBPrivateId()
|
String importExportSummary = SponsorBlockSettings.userHasSBPrivateId()
|
||||||
? str("revanced_sb_settings_ie_sum_warning")
|
? str("revanced_sb_settings_ie_sum_warning")
|
||||||
: "";
|
: str("revanced_sb_settings_ie_sum");
|
||||||
importExport.setSummary(str("revanced_sb_settings_ie_sum", exportSummarySubText));
|
importExport.setSummary(importExportSummary);
|
||||||
|
|
||||||
apiUrl.setEnabled(enabled);
|
apiUrl.setEnabled(enabled);
|
||||||
importExport.setEnabled(enabled);
|
importExport.setEnabled(enabled);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user