Skip to content

Commit

Permalink
Show upload progress for view-once messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Jan 7, 2020
1 parent 9c8a99c commit 09af858
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -102,7 +102,12 @@ public void presentMessage(@NonNull MmsMessageRecord message) {
}

private void presentText(@NonNull MmsMessageRecord messageRecord) {
if (messageRecord.isOutgoing()) {
if (messageRecord.isOutgoing() && networkInProgress(messageRecord)) {
foregroundColor = openedForegroundColor;
text.setText(R.string.RevealableMessageView_outgoing_media);
icon.setImageResource(0);
progress.setVisibility(VISIBLE);
} else if (messageRecord.isOutgoing()) {
foregroundColor = openedForegroundColor;
text.setText(R.string.RevealableMessageView_outgoing_media);
icon.setImageResource(R.drawable.ic_play_outline_24);
Expand Down

0 comments on commit 09af858

Please sign in to comment.