show bt status red when bt radio turned off

This commit is contained in:
Eric House 2014-09-18 06:08:43 -07:00
parent 36bed8a2c8
commit 2e6993cce0
2 changed files with 10 additions and 0 deletions

View file

@ -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();

View file

@ -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 )
{