-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add link to FAQ entry to "Sign in to confirm not a bot" exception message #13310
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
Merged
TobiGr
merged 5 commits into
TeamNewPipe:dev
from
absurdlylongusername:add-issue-url-sign-in-not-bot-exception
Mar 8, 2026
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e173bf4
Add Sign in confirm not a bot issue URL to the exception error message
absurdlylongusername b8ec9bf
Maybe this fix ktlint errors?
absurdlylongusername 521f60a
Change URL to FAQ
absurdlylongusername 3b3348e
Change to FAQ entry instead
absurdlylongusername 47624a5
Complete sentence.
TobiGr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
app/src/main/java/org/schabi/newpipe/util/text/TextViewExtensions.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| package org.schabi.newpipe.util.text | ||
|
|
||
| import android.content.res.Resources | ||
| import android.text.SpannableString | ||
| import android.text.method.LinkMovementMethod | ||
| import android.text.util.Linkify | ||
| import android.util.Patterns | ||
| import android.widget.TextView | ||
| import androidx.annotation.StringRes | ||
| import androidx.core.text.parseAsHtml | ||
| import androidx.core.text.toHtml | ||
| import androidx.core.text.toSpanned | ||
|
|
||
| /** | ||
| * Takes in a CharSequence [text] | ||
| * and makes raw HTTP URLs and HTML anchor tags clickable | ||
| */ | ||
| fun TextView.setTextWithLinks(text: CharSequence) { | ||
| val spanned = SpannableString(text) | ||
| // Using the pattern overload of addLinks since the one with the int masks strips all spans from the text before applying new ones | ||
| Linkify.addLinks(spanned, Patterns.WEB_URL, null) | ||
| this.text = spanned | ||
| this.movementMethod = LinkMovementMethod.getInstance() | ||
| } | ||
|
|
||
| /** | ||
| * Gets text from string resource with [id] while preserving styling and allowing string format value substitution of [formatArgs] | ||
| */ | ||
| fun Resources.getText(@StringRes id: Int, vararg formatArgs: Any?): CharSequence = getText(id).toSpanned().toHtml().format(*formatArgs).parseAsHtml() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.