mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +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 )
|
void setService( Context context, BTService service )
|
||||||
{
|
{
|
||||||
synchronized ( mServiceHolder ) {
|
synchronized ( mServiceHolder ) {
|
||||||
if ( null == mServiceHolder[0] ) {
|
if ( service != mServiceHolder[0] ) {
|
||||||
Log.d( TAG, "setService(): setting. notifying all!!!" );
|
|
||||||
Assert.assertNotNull( context );
|
Assert.assertNotNull( context );
|
||||||
mContext = context; // Use Service instead of Receiver (possibly)
|
mContext = context; // Use Service instead of Receiver (possibly)
|
||||||
mServiceHolder[0] = service;
|
mServiceHolder[0] = service;
|
||||||
if ( service != null ) {
|
if ( service != null ) {
|
||||||
|
Log.d( TAG, "setService(): setting. notifying all!!!" );
|
||||||
mServiceHolder.notifyAll();
|
mServiceHolder.notifyAll();
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
Assert.assertTrue( service == mServiceHolder[0] );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue