mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +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,12 +201,19 @@ public class BoardDelegate extends DelegateBase
|
|||
ab.setNegativeButton( R.string.button_rematch, lstnr );
|
||||
} else if ( DlgID.DLG_CONNSTAT == dlgID
|
||||
&& 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() {
|
||||
public void onClick( DialogInterface dlg,
|
||||
int whichButton ) {
|
||||
NetStateCache.reset( m_activity );
|
||||
RelayService.reset( m_activity );
|
||||
if ( m_connTypes.contains( CommsConnType.COMMS_CONN_RELAY ) ) {
|
||||
RelayService.reset( m_activity );
|
||||
}
|
||||
if ( m_connTypes.contains( CommsConnType.COMMS_CONN_P2P ) ) {
|
||||
WiDirService.reset( m_activity );
|
||||
}
|
||||
}
|
||||
};
|
||||
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()
|
||||
{
|
||||
return WIFI_DIRECT_ENABLED;
|
||||
|
|
Loading…
Reference in a new issue