mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 06:57:26 +00:00
Show upload progress for view-once messages.
This commit is contained in:
@@ -102,7 +102,12 @@ public class ViewOnceMessageView extends LinearLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void presentText(@NonNull MmsMessageRecord messageRecord) {
|
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;
|
foregroundColor = openedForegroundColor;
|
||||||
text.setText(R.string.RevealableMessageView_outgoing_media);
|
text.setText(R.string.RevealableMessageView_outgoing_media);
|
||||||
icon.setImageResource(R.drawable.ic_play_outline_24);
|
icon.setImageResource(R.drawable.ic_play_outline_24);
|
||||||
|
Reference in New Issue
Block a user