mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
show download failure
tapping on the message, still allows re-downloading in case of temporary errors.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user