From 460391c5a5a1c36e52cedff58b00db375e97133d Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Fri, 14 Oct 2016 17:15:31 +0200 Subject: [PATCH] Fix Afinet display --- src/org/linphone/StatusFragment.java | 5 ++++- submodules/linphone | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/org/linphone/StatusFragment.java b/src/org/linphone/StatusFragment.java index e9681f0f9..193cf1945 100644 --- a/src/org/linphone/StatusFragment.java +++ b/src/org/linphone/StatusFragment.java @@ -25,6 +25,7 @@ import org.linphone.assistant.AssistantActivity; import org.linphone.core.LinphoneCall; import org.linphone.core.LinphoneCallParams; import org.linphone.core.LinphoneCallStats; +import org.linphone.core.LinphoneCallStats.LinphoneAddressFamily; import org.linphone.core.LinphoneContent; import org.linphone.core.LinphoneCore; import org.linphone.core.LinphoneCore.MediaEncryption; @@ -473,7 +474,9 @@ public class StatusFragment extends Fragment { formatText(ice, getString(R.string.call_stats_ice), stats.getIceState().toString()); formatText(ip, getString(R.string.call_stats_ip), - (stats.getIsIpV6Active()) ? "IpV6" : "IpV4"); + (stats.getIpFamilyOfRemote() == LinphoneAddressFamily.INET_6.getInt()) ? + "IpV6" : (stats.getIpFamilyOfRemote() == LinphoneAddressFamily.INET.getInt()) ? + "IpV4" : "Unknown"); formatText(senderLossRate, getString(R.string.call_stats_sender_loss_rate), new DecimalFormat("##.##").format(stats.getSenderLossRate()) + "%"); formatText(receiverLossRate, getString(R.string.call_stats_receiver_loss_rate), diff --git a/submodules/linphone b/submodules/linphone index 5fcbe14a7..01498a1f4 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit 5fcbe14a7f5996fd2a44bfb37c6b8a5f6a230212 +Subproject commit 01498a1f44ecdd60bb302225d25c4aedb2858cea