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
Add action indicator when resending a message. #6347
Conversation
When message is being resent, "RESEND" button now disappears. "Resending..." text is displayed instead of an error message. Fixes #6307
Cool! 👍 |
@mammuth Thanks, I've tested the case when sending fails multiple times as well as the case when it fails and then succeeds and it seems to work fine. There is no explicit code to make the resend-button visible again and hide the actionDescription, but I believe that every time resending is finished the whole I'm not an android developer by trade so I'm not 100% sure that my understanding is correct, but it looks like
Please correct me if I'm wrong :-) |
@@ -880,6 +880,7 @@ | |||
<!-- message_recipients_list_item --> | |||
<string name="message_recipients_list_item__verify">VERIFY</string> | |||
<string name="message_recipients_list_item__resend">RESEND</string> | |||
<string name="message_recipients_list_item__resending">Resending…</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IRRC we moved to ... instad of using …
(just 3 string left)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well Android Studio suggested using the entity instead of three dots and I checked if the entity is used anywhere in the file - it was, so I used it too. Now I see that there are indeed more usages of three dots than of the entity. I can change it if it is important, but I believe it may be better to just do find and replace in one commit and change all the instances instead.
Did you try changing the button label and seeing how that looks instead of adding a new view that you swap? |
@moxie0 The screenshots from both options are below so you can judge it yourself (I'm sorry they are "reddish", I forgot to turn Twilight off). Textview (as in this pull request): And when translations are longer (used polish strings, I was too lazy to change language of the whole app) |
First time contributor checklist
Contributor checklist
Fixes #1234
syntaxFREEBIE
in the commit message of my first commitDescription
When sending of message fails, user can go into details of that message and click RESEND button to retry. As issue #6307 mentions, after clicking that button nothing really indicates on the screen that message is being resent in the background.
This pull request hides the RESEND button when resending asynchronous task is started, as well as hides the "error_description" TextView and replaces it with the "action_description" TextView which says "Resending...". That should provide a nice indicator that clicking the RESEND button actually had an effect.