From 37a853c8a43df392c01421682a6c2d6a666cfcb9 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 27 Dec 2018 22:10:24 -0800 Subject: [PATCH] oops: use the first *remote* address --- .../main/java/org/eehouse/android/xw4/BoardDelegate.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java index 7f87d9e23..8a970aa59 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java @@ -1485,11 +1485,10 @@ public class BoardDelegate extends DelegateBase public void onStatusClicked() { - CommsAddrRec addr = new CommsAddrRec(); - XwJNI.comms_getAddr( m_jniGamePtr, addr ); - + CommsAddrRec[] addrs = XwJNI.comms_getAddrs( m_jniGamePtr ); final String msg = ConnStatusHandler - .getStatusText( m_activity, m_connTypes, addr ); + .getStatusText( m_activity, m_connTypes, addrs[0] ); + post( new Runnable() { @Override public void run() {