add assertion

This commit is contained in:
Eric House 2015-01-05 07:40:01 -08:00
parent 6da1b54636
commit e394bf01e8

View file

@ -63,6 +63,7 @@ public class BTInviteDelegate extends InviteDelegate {
public static void launchForResult( Activity activity, int nMissing,
int requestCode )
{
Assert.assertTrue( 0 < nMissing ); // don't call if nMissing == 0
Intent intent = new Intent( activity, BTInviteActivity.class );
intent.putExtra( INTENT_KEY_NMISSING, nMissing );
activity.startActivityForResult( intent, requestCode );