-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add button in settings to clear reCAPTCHA cookies #4453
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me. Did not test, but I guess, you did :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me, too, I don't see why it shouldn't work, though I will test.
@wb9688 could you provide an APK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Shouldn't the preference be disabled or hidden when there are no cookies to clear?
app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java
Outdated
Show resolved
Hide resolved
@Stypox: Now it's hidden when there's no cookie (and will hide when you press it). I confirmed that it works using Stetho. |
Does it always check for "no cookie" before hiding or does tapping it suffice? In other words, does it assume the operation will succeed or does it wait and check that cookies have been cleared before hiding? Is hiding prevented if the operation fails for whatever reason? |
Either the operation fails making the app crash before it gets to hide the button or the operation succeeds thus correctly hiding the button. So there is no room for inconsistency here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thank you!
What is it?
Description of the changes in your PR
Add button in settings to clear reCAPTCHA cookies
Fixes the following issue(s)
Fixes #4279
Testing apk
app-debug.apk.zip
Agreement