From 480d4ad9046f75a363a47360fc55f49bf15e9598 Mon Sep 17 00:00:00 2001 From: sk Date: Mon, 16 Jan 2023 20:23:38 +0100 Subject: [PATCH] make announcements selectable closes sk22#275 --- .../android/fragments/AnnouncementsFragment.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/AnnouncementsFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/AnnouncementsFragment.java index b2b42bc7e..74ea115e8 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/AnnouncementsFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/AnnouncementsFragment.java @@ -66,9 +66,11 @@ public class AnnouncementsFragment extends BaseStatusListFragment instanceUser.avatar = instanceUser.avatarStatic = instance.thumbnail; instanceUser.emojis = List.of(); Status fakeStatus = a.toStatus(); + TextStatusDisplayItem textItem = new TextStatusDisplayItem(a.id, HtmlParser.parse(a.content, a.emojis, a.mentions, a.tags, accountID), this, fakeStatus); + textItem.textSelectable = true; return List.of( HeaderStatusDisplayItem.fromAnnouncement(a, fakeStatus, instanceUser, this, accountID, this::onMarkAsRead), - new TextStatusDisplayItem(a.id, HtmlParser.parse(a.content, a.emojis, a.mentions, a.tags, accountID), this, fakeStatus) + textItem ); } @@ -87,8 +89,7 @@ public class AnnouncementsFragment extends BaseStatusListFragment protected void addAccountToKnown(Announcement s) {} @Override - public void onItemClick(String id) { - } + public void onItemClick(String id) {} @Override protected void doLoadData(int offset, int count){