captcha: remove leftover strings and settings for defunct google cookie functionality

dev
Floens 6 years ago
parent ee7ffb6ad1
commit afee7c7ba2
  1. 4
      Clover/app/src/main/java/org/floens/chan/core/settings/ChanSettings.java
  2. 2
      Clover/app/src/main/res/values/strings.xml

@ -161,8 +161,6 @@ public class ChanSettings {
public static final BooleanSetting crashReporting; public static final BooleanSetting crashReporting;
public static final BooleanSetting useNewCaptchaWindow; public static final BooleanSetting useNewCaptchaWindow;
public static final StringSetting googleCookie;
public static final LongSetting lastGoogleCookieUpdateTime;
static { static {
SettingProvider p = new SharedPreferencesSettingProvider(AndroidUtils.getPreferences()); SettingProvider p = new SharedPreferencesSettingProvider(AndroidUtils.getPreferences());
@ -254,8 +252,6 @@ public class ChanSettings {
crashReporting = new BooleanSetting(p, "preference_crash_reporting", true); crashReporting = new BooleanSetting(p, "preference_crash_reporting", true);
useNewCaptchaWindow = new BooleanSetting(p, "use_new_captcha_window", true); useNewCaptchaWindow = new BooleanSetting(p, "use_new_captcha_window", true);
googleCookie = new StringSetting(p, "google_cookie", "");
lastGoogleCookieUpdateTime = new LongSetting(p, "last_google_cookie_update_time", 0L);
// Old (but possibly still in some users phone) // Old (but possibly still in some users phone)
// preference_board_view_mode default "list" // preference_board_view_mode default "list"

@ -583,8 +583,6 @@ Don't have a 4chan Pass?<br>
<!-- Captcha settings --> <!-- Captcha settings -->
<string name="settings_captcha_group" tools:ignore="MissingTranslation">Captcha</string> <string name="settings_captcha_group" tools:ignore="MissingTranslation">Captcha</string>
<string name="settings_use_new_captcha_window" tools:ignore="MissingTranslation">Use new captcha window for no-js captcha</string> <string name="settings_use_new_captcha_window" tools:ignore="MissingTranslation">Use new captcha window for no-js captcha</string>
<string name="settings_use_real_google_cookies" tools:ignore="MissingTranslation">Use real google cookies instead of hardcoded ones</string>
<string name="settings_use_real_google_cookies_description" tools:ignore="MissingTranslation">When this option is enabled a GET request to the google.com will be executed to get the google cookies (NID) which will be used for captcha authentication. Why would you need them? Because the hardcoded ones sometimes will make you re-enter the captcha dozens of times. Those cookies will be updated automatically (every three months). But it will also be possible to update them manually if necessary (for example, when the old ones give too many challenges in a row).</string>
<string name="captcha_layout_v2_verify_button_text" tools:ignore="MissingTranslation">Verify</string> <string name="captcha_layout_v2_verify_button_text" tools:ignore="MissingTranslation">Verify</string>
<string name="captcha_layout_v2_reload" tools:ignore="MissingTranslation">Reload</string> <string name="captcha_layout_v2_reload" tools:ignore="MissingTranslation">Reload</string>

Loading…
Cancel
Save