Fix Afinet display
This commit is contained in:
parent
17f0490809
commit
460391c5a5
2 changed files with 5 additions and 2 deletions
|
@ -25,6 +25,7 @@ import org.linphone.assistant.AssistantActivity;
|
||||||
import org.linphone.core.LinphoneCall;
|
import org.linphone.core.LinphoneCall;
|
||||||
import org.linphone.core.LinphoneCallParams;
|
import org.linphone.core.LinphoneCallParams;
|
||||||
import org.linphone.core.LinphoneCallStats;
|
import org.linphone.core.LinphoneCallStats;
|
||||||
|
import org.linphone.core.LinphoneCallStats.LinphoneAddressFamily;
|
||||||
import org.linphone.core.LinphoneContent;
|
import org.linphone.core.LinphoneContent;
|
||||||
import org.linphone.core.LinphoneCore;
|
import org.linphone.core.LinphoneCore;
|
||||||
import org.linphone.core.LinphoneCore.MediaEncryption;
|
import org.linphone.core.LinphoneCore.MediaEncryption;
|
||||||
|
@ -473,7 +474,9 @@ public class StatusFragment extends Fragment {
|
||||||
formatText(ice, getString(R.string.call_stats_ice),
|
formatText(ice, getString(R.string.call_stats_ice),
|
||||||
stats.getIceState().toString());
|
stats.getIceState().toString());
|
||||||
formatText(ip, getString(R.string.call_stats_ip),
|
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),
|
formatText(senderLossRate, getString(R.string.call_stats_sender_loss_rate),
|
||||||
new DecimalFormat("##.##").format(stats.getSenderLossRate()) + "%");
|
new DecimalFormat("##.##").format(stats.getSenderLossRate()) + "%");
|
||||||
formatText(receiverLossRate, getString(R.string.call_stats_receiver_loss_rate),
|
formatText(receiverLossRate, getString(R.string.call_stats_receiver_loss_rate),
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 5fcbe14a7f5996fd2a44bfb37c6b8a5f6a230212
|
Subproject commit 01498a1f44ecdd60bb302225d25c4aedb2858cea
|
Loading…
Reference in a new issue