Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix blocked message in Suggested Edits, and use coroutines. #4882

Merged
merged 5 commits into from
Aug 20, 2024

Conversation

dbrant
Copy link
Member

@dbrant dbrant commented Aug 20, 2024

There is an issue in the Suggested Edits screen, if the current account is blocked, the block message overlaps the other components on the screen, because the other components are not properly hidden. This is most prominent in Black mode; in other modes it looks more correct, but only by accident.

image

This fixes the showing/hiding of the other components in case of a block, and while fixing the issue I converted some of the block message retrieval logic to coroutines, which will simplify the work of several upcoming tasks.

@dbrant dbrant added the Minor Minor stuff label Aug 20, 2024
@dbrant dbrant requested a review from cooltey as a code owner August 20, 2024 14:39
@Test
@Throws(Throwable::class)
fun testRequestResponse404() {
enqueue404()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the rest of these tests because I no longer understand what they're testing. Are they testing if Retrofit works correctly? That's already done in Retrofit's own test suite. Are they testing if the Java language works correctly? I'm not sure that's within the scope of what we should worry about.

@cooltey cooltey merged commit ed1c57c into main Aug 20, 2024
1 check passed
@cooltey cooltey deleted the blockedHtmlCoroutine branch August 20, 2024 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Minor Minor stuff
Development

Successfully merging this pull request may close these issues.

2 participants