adapt to small api changes
This commit is contained in:
parent
2f6a101e54
commit
6491500af1
3 changed files with 5 additions and 5 deletions
|
@ -521,8 +521,8 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
|||
|
||||
public void onMessageReceived(int id, LinphoneAddress from, LinphoneChatMessage message) {
|
||||
if (from.asStringUriOnly().equals(sipUri)) {
|
||||
if (message.getMessage() != null) {
|
||||
displayMessage(id, message.getMessage(), String.valueOf(System.currentTimeMillis()), true, null, messagesLayout);
|
||||
if (message.getText() != null) {
|
||||
displayMessage(id, message.getText(), String.valueOf(System.currentTimeMillis()), true, null, messagesLayout);
|
||||
} else if (message.getExternalBodyUrl() != null) {
|
||||
Bitmap bm = downloadImage(message.getExternalBodyUrl());
|
||||
displayImageMessage(id, bm, String.valueOf(System.currentTimeMillis()), true, null, messagesLayout);
|
||||
|
@ -533,7 +533,7 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
|||
|
||||
@Override
|
||||
public void onLinphoneChatMessageStateChanged(LinphoneChatMessage msg, State state) {
|
||||
final String finalMessage = msg.getMessage();
|
||||
final String finalMessage = msg.getText();
|
||||
final String finalImage = msg.getExternalBodyUrl();
|
||||
final State finalState = state;
|
||||
if (LinphoneActivity.isInstanciated() && state != State.InProgress) {
|
||||
|
|
|
@ -944,7 +944,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
LinphoneAddress from = message.getFrom();
|
||||
ChatStorage chatStorage = new ChatStorage(mServiceContext);
|
||||
|
||||
String textMessage = message.getMessage();
|
||||
String textMessage = message.getText();
|
||||
String url = message.getExternalBodyUrl();
|
||||
String notificationText = null;
|
||||
int id = -1;
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit bf0953eb1d3c83471c6950eea505bea4e67f93e6
|
||||
Subproject commit dd9241f226408096224f16df441c1cb67ce8193b
|
Loading…
Reference in a new issue