mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-10 05:26:10 +01:00
add assertion
This commit is contained in:
parent
ff5df01b28
commit
7329cb842d
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,8 @@ import android.os.Bundle;
|
|||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
|
||||
import junit.framework.Assert;
|
||||
|
||||
public class XWActivity extends Activity implements Delegator {
|
||||
|
||||
private DelegateBase m_dlgt;
|
||||
|
@ -123,6 +125,7 @@ public class XWActivity extends Activity implements Delegator {
|
|||
protected Dialog onCreateDialog( int id )
|
||||
{
|
||||
Dialog dialog = super.onCreateDialog( id );
|
||||
Assert.assertNull( dialog );
|
||||
if ( null == dialog ) {
|
||||
dialog = m_dlgt.onCreateDialog( id );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue