mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
show bt status red when bt radio turned off
This commit is contained in:
parent
36bed8a2c8
commit
2e6993cce0
2 changed files with 10 additions and 0 deletions
|
@ -326,6 +326,9 @@ public class BTService extends XWService {
|
|||
if ( cameOn ) {
|
||||
GameUtils.resendAllIf( this, false );
|
||||
} else {
|
||||
ConnStatusHandler.updateStatus( this, null,
|
||||
CommsConnType.COMMS_CONN_BT,
|
||||
false );
|
||||
stopListener();
|
||||
stopSender();
|
||||
stopSelf();
|
||||
|
|
|
@ -227,6 +227,13 @@ public class ConnStatusHandler {
|
|||
}
|
||||
}
|
||||
|
||||
public static void updateStatus( Context context, ConnStatusCBacks cbacks,
|
||||
CommsConnType connType, boolean success )
|
||||
{
|
||||
updateStatusImpl( context, cbacks, connType, success, true );
|
||||
updateStatusImpl( context, cbacks, connType, success, false );
|
||||
}
|
||||
|
||||
public static void updateStatusIn( Context context, ConnStatusCBacks cbacks,
|
||||
CommsConnType connType, boolean success )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue