|
24 | 24 | import org.schabi.newpipe.NewPipeDatabase; |
25 | 25 | import org.schabi.newpipe.R; |
26 | 26 | import org.schabi.newpipe.error.ErrorUtil; |
27 | | -import org.schabi.newpipe.error.ReCaptchaActivity; |
28 | 27 | import org.schabi.newpipe.extractor.NewPipe; |
29 | 28 | import org.schabi.newpipe.extractor.localization.ContentCountry; |
30 | 29 | import org.schabi.newpipe.extractor.localization.Localization; |
@@ -105,21 +104,6 @@ ZIP_MIME_TYPE, getImportExportDataUri()), |
105 | 104 | .getPreferredContentCountry(requireContext()); |
106 | 105 | initialLanguage = defaultPreferences.getString(getString(R.string.app_language_key), "en"); |
107 | 106 |
|
108 | | - final Preference clearCookiePref = requirePreference(R.string.clear_cookie_key); |
109 | | - clearCookiePref.setOnPreferenceClickListener(preference -> { |
110 | | - defaultPreferences.edit() |
111 | | - .putString(getString(R.string.recaptcha_cookies_key), "").apply(); |
112 | | - DownloaderImpl.getInstance().setCookie(ReCaptchaActivity.RECAPTCHA_COOKIES_KEY, ""); |
113 | | - Toast.makeText(getActivity(), R.string.recaptcha_cookies_cleared, |
114 | | - Toast.LENGTH_SHORT).show(); |
115 | | - clearCookiePref.setVisible(false); |
116 | | - return true; |
117 | | - }); |
118 | | - |
119 | | - if (defaultPreferences.getString(getString(R.string.recaptcha_cookies_key), "").isEmpty()) { |
120 | | - clearCookiePref.setVisible(false); |
121 | | - } |
122 | | - |
123 | 107 | findPreference(getString(R.string.download_thumbnail_key)).setOnPreferenceChangeListener( |
124 | 108 | (preference, newValue) -> { |
125 | 109 | PicassoHelper.setShouldLoadImages((Boolean) newValue); |
|
0 commit comments