mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
remove misplaced assert
This commit is contained in:
parent
ae56f23f66
commit
4878afb185
1 changed files with 2 additions and 4 deletions
|
@ -664,16 +664,14 @@ public class BTService extends XWService {
|
|||
void setService( Context context, BTService service )
|
||||
{
|
||||
synchronized ( mServiceHolder ) {
|
||||
if ( null == mServiceHolder[0] ) {
|
||||
Log.d( TAG, "setService(): setting. notifying all!!!" );
|
||||
if ( service != mServiceHolder[0] ) {
|
||||
Assert.assertNotNull( context );
|
||||
mContext = context; // Use Service instead of Receiver (possibly)
|
||||
mServiceHolder[0] = service;
|
||||
if ( service != null ) {
|
||||
Log.d( TAG, "setService(): setting. notifying all!!!" );
|
||||
mServiceHolder.notifyAll();
|
||||
}
|
||||
} else {
|
||||
Assert.assertTrue( service == mServiceHolder[0] );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue