ageRestrictedContent cookie only sent for youtube

Now the age restricted content cookie is only sent when sending a
request to youtube. There's no need to remove the cookie when the
service changes because whether to add the cookie is determined by
looking at the url the request is being sent to.
This commit is contained in:
Vincent Nagel 2020-03-15 20:04:34 -05:00
parent de4d6037d3
commit 430d4e1ccd
3 changed files with 29 additions and 17 deletions

View file

@ -92,7 +92,7 @@ public class ContentSettingsFragment extends BasePreferenceFragment {
if (preference.getKey().equals(showAgeRestrictedContentKey)) {
Context context = getContext();
if(context != null){
if (context != null) {
DownloaderImpl.getInstance().updateAgeRestrictedContentCookies(context);
}
}