chinwag-android/app/src/main/java/com/keylesspalace/tusky/entity
Levi Bard ff8dd37855
Support the mastodon 4 filter api (#3188)
* Replace "warn"-filtered posts in timelines and thread view with placeholders

* Adapt hashtag muting interface

* Rework filter UI

* Add icon for account preferences

* Clean up UI

* WIP: Use chips instead of a list. Adjust padding

* Scroll the filter edit activity

Nested scrolling views (e.g., an activity that scrolls with an embedded list
that also scrolls) can be difficult UI.

Since the list of contexts is fixed, replace it with a fixed collection of
switches, so there's no need to scroll the list.

Since the list of actions is only two (warn, hide), and are mutually
exclusive, replace the spinner with two radio buttons.

Use the accent colour and title styles on the different heading titles in
the layout, to match the presentation in Preferences.

Add an explicit "Cancel" button.

The layout is a straightforward LinearLayout, so use that instead of
ConstraintLayout, and remove some unncessary IDs.

Update EditFilterActivity to handle the new layout.

* Cleanup

* Add more information to the filter list view

* First pass on code review comments

* Add view model to filters activity

* Add view model to edit filters activity

* Only use the status wrapper for filtered statuses

* Relint

---------

Co-authored-by: Nik Clayton <nik@ngo.org.uk>
2023-03-11 13:12:50 +01:00
..
AccessToken.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
Account.kt Language selection fixes (#2917) 2022-11-24 15:45:19 +01:00
Announcement.kt make all model classes immutable (#2686) 2022-08-31 18:54:40 +02:00
AppCredentials.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
Attachment.kt Add support for updating media description and focus point when editing statuses (#3215) 2023-02-14 21:13:38 +01:00
Card.kt Fix rendering of link preview images (#2743) 2022-11-04 19:22:53 +01:00
Conversation.kt Fix status diffing and improve timeline performance (#2386) 2022-03-15 21:34:57 +01:00
DeletedStatus.kt make all model classes immutable (#2686) 2022-08-31 18:54:40 +02:00
Emoji.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
Filter.kt Support the mastodon 4 filter api (#3188) 2023-03-11 13:12:50 +01:00
FilterKeyword.kt Support the mastodon 4 filter api (#3188) 2023-03-11 13:12:50 +01:00
FilterResult.kt Support the mastodon 4 filter api (#3188) 2023-03-11 13:12:50 +01:00
FilterV1.kt Support the mastodon 4 filter api (#3188) 2023-03-11 13:12:50 +01:00
HashTag.kt Add support for following hashtags (#2642) 2022-08-07 19:09:26 +02:00
Instance.kt show rules on the login screen (#2746) 2022-11-05 17:37:20 +01:00
Marker.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
MastoList.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
MediaUploadResult.kt use POST api/v2/media to upload media (#2327) 2022-02-25 18:57:18 +01:00
NewStatus.kt Add support for updating media description and focus point when editing statuses (#3215) 2023-02-14 21:13:38 +01:00
Notification.kt Convert NotificationsFragment and related code to Kotlin, use the Paging library (#3159) 2023-03-10 20:12:33 +01:00
NotificationSubscribeResult.kt Push notifications support via UnifiedPush (#2303) 2022-05-17 19:32:09 +02:00
Poll.kt Highlight your own votes when displaying poll results (#2242) 2021-09-17 22:12:17 +02:00
Relationship.kt use custom JsonAdapter to be compatible with instances that have a custom subscribing feature (#2298) 2022-01-21 07:34:26 +01:00
Report.kt Add support for moderation report notifications (#2887) 2022-12-01 20:11:55 +01:00
ScheduledStatus.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
SearchResult.kt Fix status diffing and improve timeline performance (#2386) 2022-03-15 21:34:57 +01:00
Status.kt Support the mastodon 4 filter api (#3188) 2023-03-11 13:12:50 +01:00
StatusContext.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
StatusEdit.kt show status edits (#3049) 2023-01-02 14:09:18 +01:00
StatusParams.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
StatusSource.kt Add post editing capability (#2828) 2022-12-08 10:18:12 +01:00
TimelineAccount.kt Fix status diffing and improve timeline performance (#2386) 2022-03-15 21:34:57 +01:00
TrendingTagsResult.kt Add trending tags (#3149) 2023-02-14 19:52:11 +01:00