This commit is contained in:
LucasGGamerM
2023-01-02 11:46:15 -03:00
parent 2969a3e4fd
commit ac3875fe08
4 changed files with 27 additions and 28 deletions

View File

@@ -32,7 +32,7 @@ public class LinkSpan extends CharacterStyle {
public void updateDrawState(TextPaint tp) {
tp.setColor(color=tp.linkColor);
}
public void onClick(Context context){
switch(getType()){
case URL -> UiUtils.openURL(context, accountID, link);
@@ -45,7 +45,6 @@ public class LinkSpan extends CharacterStyle {
UiUtils.copyText(view, getType() == Type.URL ? link : text);
}
public String getLink(){
return link;
}