Yuito-app-android/app/src/main/java/com/keylesspalace/tusky/entity
Nik Clayton 81f725667e
Show better errors when loading notifications fails (#3448)
* Show better errors with notification loading fails

The errors are returned as a JSON object, parse it, and show the error
message it contains.

Handle the cases where there might be no error message, or the JSON may be
malformed.

Add tests.

Fixes #3445

* Lint
2023-03-18 10:25:41 +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 update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +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 update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +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 update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
Emoji.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
Error.kt Show better errors when loading notifications fails (#3448) 2023-03-18 10:25:41 +01:00
Filter.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
FilterKeyword.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
FilterResult.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
FilterV1.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
HashTag.kt Add support for following hashtags (#2642) 2022-08-07 19:09:26 +02:00
Instance.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +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 update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
Notification.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
NotificationSubscribeResult.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01: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 update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +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 update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +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 update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
TimelineAccount.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
TrendingTagsResult.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00