rename setting to "YouTube restricted mode"
This commit is contained in:
parent
63087a4311
commit
f60cce54ea
8 changed files with 24 additions and 24 deletions
|
|
@ -58,7 +58,7 @@ public class ContentSettingsFragment extends BasePreferenceFragment {
|
|||
private File newpipeSettings;
|
||||
|
||||
private String thumbnailLoadToggleKey;
|
||||
private String restrictedModeEnabledKey;
|
||||
private String youtubeRestrictedModeEnabledKey;
|
||||
|
||||
private Localization initialSelectedLocalization;
|
||||
private ContentCountry initialSelectedContentCountry;
|
||||
|
|
@ -68,7 +68,7 @@ public class ContentSettingsFragment extends BasePreferenceFragment {
|
|||
public void onCreate(@Nullable final Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
thumbnailLoadToggleKey = getString(R.string.download_thumbnail_key);
|
||||
restrictedModeEnabledKey = getString(R.string.restricted_mode_enabled);
|
||||
youtubeRestrictedModeEnabledKey = getString(R.string.youtube_restricted_mode_enabled);
|
||||
|
||||
initialSelectedLocalization = org.schabi.newpipe.util.Localization
|
||||
.getPreferredLocalization(requireContext());
|
||||
|
|
@ -90,10 +90,10 @@ public class ContentSettingsFragment extends BasePreferenceFragment {
|
|||
Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
||||
if (preference.getKey().equals(restrictedModeEnabledKey)) {
|
||||
if (preference.getKey().equals(youtubeRestrictedModeEnabledKey)) {
|
||||
Context context = getContext();
|
||||
if (context != null) {
|
||||
DownloaderImpl.getInstance().updateRestrictedModeCookies(context);
|
||||
DownloaderImpl.getInstance().updateYoutubeRestrictedModeCookies(context);
|
||||
} else {
|
||||
Log.w(TAG, "onPreferenceTreeClick: null context");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue