Archived
Added Linkify to event text descriptions.
This commit is contained in:
1 parent
10a38a5183
commit
3106270fff
1 file changed
+2
@@ -4,6 +4,7 @@ import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.text.Html;
|
||||
import android.text.util.Linkify;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.Button;
|
||||
@@ -48,6 +49,7 @@ public class EventViewActivity extends BaseDnsActivity {
|
||||
}
|
||||
|
||||
description.setText(Html.fromHtml(sb.toString()));
|
||||
Linkify.addLinks(description, Linkify.ALL);
|
||||
|
||||
if (e.id > 0) { // if id exists and seems legit
|
||||
link.setVisibility(View.VISIBLE);
|
||||
|
||||
Reference in new issue
Block a user