add assertion

This commit is contained in:
Eric House 2014-08-07 06:26:04 -07:00
parent ff5df01b28
commit 7329cb842d

View file

@ -26,6 +26,8 @@ import android.os.Bundle;
import android.view.Menu; import android.view.Menu;
import android.view.MenuItem; import android.view.MenuItem;
import junit.framework.Assert;
public class XWActivity extends Activity implements Delegator { public class XWActivity extends Activity implements Delegator {
private DelegateBase m_dlgt; private DelegateBase m_dlgt;
@ -123,6 +125,7 @@ public class XWActivity extends Activity implements Delegator {
protected Dialog onCreateDialog( int id ) protected Dialog onCreateDialog( int id )
{ {
Dialog dialog = super.onCreateDialog( id ); Dialog dialog = super.onCreateDialog( id );
Assert.assertNull( dialog );
if ( null == dialog ) { if ( null == dialog ) {
dialog = m_dlgt.onCreateDialog( id ); dialog = m_dlgt.onCreateDialog( id );
} }