show download failure

tapping on the message, still allows re-downloading
in case of temporary errors.
This commit is contained in:
B. Petersen
2022-04-14 13:54:32 +02:00
committed by bjoern
parent a4efe7f47f
commit 04b32db81f
@@ -362,6 +362,9 @@ public class ConversationItem extends BaseConversationItem
if (downloadState==DcMsg.DC_DOWNLOAD_IN_PROGRESS) {
msgActionButton.setEnabled(false);
msgActionButton.setText(R.string.downloading);
} else if (downloadState==DcMsg.DC_DOWNLOAD_FAILURE) {
msgActionButton.setEnabled(true);
msgActionButton.setText(R.string.download_failed);
} else {
msgActionButton.setEnabled(true);
msgActionButton.setText(R.string.download);