mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
interface name change only
This commit is contained in:
parent
dc2cd239a1
commit
2c6ce5c1a8
3 changed files with 5 additions and 5 deletions
|
@ -229,7 +229,7 @@ public class CommsTransport implements TransportProcs,
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// NetStateCache.StateChangedIf interface
|
// NetStateCache.StateChangedIf interface
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
public void netAvail( boolean nowAvailable )
|
public void onNetAvail( boolean nowAvailable )
|
||||||
{
|
{
|
||||||
if ( !nowAvailable ) {
|
if ( !nowAvailable ) {
|
||||||
waitToStopImpl();
|
waitToStopImpl();
|
||||||
|
|
|
@ -42,7 +42,7 @@ public class NetStateCache {
|
||||||
private static final long WAIT_STABLE_MILLIS = 2 * 1000;
|
private static final long WAIT_STABLE_MILLIS = 2 * 1000;
|
||||||
|
|
||||||
public interface StateChangedIf {
|
public interface StateChangedIf {
|
||||||
public void netAvail( boolean nowAvailable );
|
public void onNetAvail( boolean nowAvailable );
|
||||||
}
|
}
|
||||||
|
|
||||||
private static AtomicBoolean s_haveReceiver = new AtomicBoolean( false );
|
private static AtomicBoolean s_haveReceiver = new AtomicBoolean( false );
|
||||||
|
@ -221,7 +221,7 @@ public class NetStateCache {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void notifyStateChanged( final Context context )
|
private void notifyStateChanged( final Context context )
|
||||||
{
|
{
|
||||||
// We want to wait for WAIT_STABLE_MILLIS of inactivity
|
// We want to wait for WAIT_STABLE_MILLIS of inactivity
|
||||||
// before informing listeners. So each time there's a
|
// before informing listeners. So each time there's a
|
||||||
|
@ -246,7 +246,7 @@ public class NetStateCache {
|
||||||
synchronized( s_ifs ) {
|
synchronized( s_ifs ) {
|
||||||
Iterator<StateChangedIf> iter = s_ifs.iterator();
|
Iterator<StateChangedIf> iter = s_ifs.iterator();
|
||||||
while ( iter.hasNext() ) {
|
while ( iter.hasNext() ) {
|
||||||
iter.next().netAvail( s_netAvail );
|
iter.next().onNetAvail( s_netAvail );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -490,7 +490,7 @@ public class RelayService extends XWService
|
||||||
}
|
}
|
||||||
|
|
||||||
// NetStateCache.StateChangedIf interface
|
// NetStateCache.StateChangedIf interface
|
||||||
public void netAvail( boolean nowAvailable )
|
public void onNetAvail( boolean nowAvailable )
|
||||||
{
|
{
|
||||||
startService( this ); // bad name: will *stop* threads too
|
startService( this ); // bad name: will *stop* threads too
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue