mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-07 20:46:17 +01:00
wifi: add reset() that will help troubleshoot
This commit is contained in:
parent
721ee381a5
commit
502888ee03
2 changed files with 14 additions and 2 deletions
|
@ -201,13 +201,20 @@ public class BoardDelegate extends DelegateBase
|
||||||
ab.setNegativeButton( R.string.button_rematch, lstnr );
|
ab.setNegativeButton( R.string.button_rematch, lstnr );
|
||||||
} else if ( DlgID.DLG_CONNSTAT == dlgID
|
} else if ( DlgID.DLG_CONNSTAT == dlgID
|
||||||
&& BuildConfig.DEBUG && null != m_connTypes
|
&& BuildConfig.DEBUG && null != m_connTypes
|
||||||
&& m_connTypes.contains( CommsConnType.COMMS_CONN_RELAY ) ) {
|
&& (m_connTypes.contains( CommsConnType.COMMS_CONN_RELAY )
|
||||||
|
|| m_connTypes.contains( CommsConnType.COMMS_CONN_P2P )) ) {
|
||||||
|
|
||||||
lstnr = new OnClickListener() {
|
lstnr = new OnClickListener() {
|
||||||
public void onClick( DialogInterface dlg,
|
public void onClick( DialogInterface dlg,
|
||||||
int whichButton ) {
|
int whichButton ) {
|
||||||
NetStateCache.reset( m_activity );
|
NetStateCache.reset( m_activity );
|
||||||
|
if ( m_connTypes.contains( CommsConnType.COMMS_CONN_RELAY ) ) {
|
||||||
RelayService.reset( m_activity );
|
RelayService.reset( m_activity );
|
||||||
}
|
}
|
||||||
|
if ( m_connTypes.contains( CommsConnType.COMMS_CONN_P2P ) ) {
|
||||||
|
WiDirService.reset( m_activity );
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
ab.setNegativeButton( R.string.button_reconnect, lstnr );
|
ab.setNegativeButton( R.string.button_reconnect, lstnr );
|
||||||
}
|
}
|
||||||
|
|
|
@ -198,6 +198,11 @@ public class WiDirService extends XWService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void reset( Context context )
|
||||||
|
{
|
||||||
|
// Put experimental stuff here that might help get a connection
|
||||||
|
}
|
||||||
|
|
||||||
public static boolean supported()
|
public static boolean supported()
|
||||||
{
|
{
|
||||||
return WIFI_DIRECT_ENABLED;
|
return WIFI_DIRECT_ENABLED;
|
||||||
|
|
Loading…
Add table
Reference in a new issue