Adding a specific message in notification when incomming message is a file
This commit is contained in:
parent
e9cb4e93f5
commit
358e506849
2 changed files with 3 additions and 1 deletions
|
@ -461,6 +461,7 @@
|
||||||
<string name="content_description_contact_organization">Organization</string>
|
<string name="content_description_contact_organization">Organization</string>
|
||||||
<string name="content_description_back_call">Back to call</string>
|
<string name="content_description_back_call">Back to call</string>
|
||||||
<string name="content_description_send_file">Send a file</string>
|
<string name="content_description_send_file">Send a file</string>
|
||||||
|
<string name="content_description_incoming_file">Incoming file</string>
|
||||||
<string name="content_description_message">Message</string>
|
<string name="content_description_message">Message</string>
|
||||||
<string name="content_description_unread_chat_message">Unread chat message</string>
|
<string name="content_description_unread_chat_message">Unread chat message</string>
|
||||||
<string name="content_description_transfer">Transfer</string>
|
<string name="content_description_transfer">Transfer</string>
|
||||||
|
|
|
@ -1015,7 +1015,8 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
||||||
|
|
||||||
LinphoneAddress from = message.getFrom();
|
LinphoneAddress from = message.getFrom();
|
||||||
|
|
||||||
String textMessage = message.getText();
|
String textMessage = (message.getFileTransferInformation() != null) ?
|
||||||
|
getString(R.string.content_description_incoming_file) : message.getText();
|
||||||
try {
|
try {
|
||||||
LinphoneContact contact = ContactsManager.getInstance().findContactFromAddress(from);
|
LinphoneContact contact = ContactsManager.getInstance().findContactFromAddress(from);
|
||||||
if (!mServiceContext.getResources().getBoolean(R.bool.disable_chat_message_notification)) {
|
if (!mServiceContext.getResources().getBoolean(R.bool.disable_chat_message_notification)) {
|
||||||
|
|
Loading…
Reference in a new issue