mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2024-12-16 15:48:13 +08:00
Make markdown links clickable (#916)
Pr makes links in markdown clickable. Closes #797 <br><br> - [X] I carefully read the [contribution guidelines](https://codeberg.org/GitNex/GitNex/src/branch/main/CONTRIBUTING.md). - [X] I'm following the code standards as defined [here](https://codeberg.org/gitnex/GitNex/wiki/Code-Standards). - [X] By submitting this pull request, I permit GitNex to license my work under the [GNU General Public License v3](https://codeberg.org/GitNex/GitNex/src/branch/main/LICENSE). Co-authored-by: qwerty287 <ndev@web.de> Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/916 Reviewed-by: M M Arif <mmarif@noreply.codeberg.org> Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org> Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
This commit is contained in:
parent
3b3b0ada2f
commit
cc70fe9a68
@ -3,6 +3,7 @@ package org.mian.gitnex.helpers;
|
||||
import android.content.Context;
|
||||
import android.graphics.Typeface;
|
||||
import android.text.Spanned;
|
||||
import android.text.method.LinkMovementMethod;
|
||||
import android.widget.TextView;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.core.content.res.ResourcesCompat;
|
||||
@ -79,6 +80,7 @@ public class Markdown {
|
||||
public static void render(Context context, String markdown, TextView textView) {
|
||||
|
||||
try {
|
||||
textView.setMovementMethod(LinkMovementMethod.getInstance());
|
||||
Renderer renderer = rendererPool.claim(timeout);
|
||||
|
||||
if(renderer != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user