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.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 );
}