diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-04-12 21:33:02 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-04-12 21:33:02 +0200 |
commit | 9459f89a1d54f4c978df627fb5aaa45365f778e0 (patch) | |
tree | 891f75be779d6379ae10378ca244748a49516d4a /src/main/java/de/pixart/messenger/ui/adapter | |
parent | 51afe29aec302b1002b62acedf5afd1d07463b00 (diff) |
use styled warning for message error
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui/adapter')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java index a97f68cd8..b3fd88041 100644 --- a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java +++ b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java @@ -290,7 +290,11 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie break; } if (error && type == SENT) { - viewHolder.time.setTextAppearance(getContext(), R.style.TextAppearance_Conversations_Caption_Warning); + if (darkBackground) { + viewHolder.time.setTextAppearance(getContext(), R.style.TextAppearance_Conversations_Caption_Warning_OnDark); + } else { + viewHolder.time.setTextAppearance(getContext(), R.style.TextAppearance_Conversations_Caption_Warning); + } DownloadableFile file = activity.xmppConnectionService.getFileBackend().getFile(message); if (file.exists()) { if (activity.xmppConnectionService.mHttpConnectionManager.getAutoAcceptFileSize() >= message.getFileParams().size) { |