don't optimize for email-only case

The test got out-of-date, and with SMS and clipboard options always
present there's no point in testing: should always pass.
This commit is contained in:
Eric House 2019-07-14 15:10:32 -07:00
parent 7ed7e7d968
commit af1ac3f779

View file

@ -422,24 +422,10 @@ public class DlgDelegate {
public void showInviteChoicesThen( final Action action, public void showInviteChoicesThen( final Action action,
SentInvitesInfo info ) SentInvitesInfo info )
{ {
if ( (Utils.deviceSupportsNBS( m_activity )) DlgState state = new DlgState( DlgID.INVITE_CHOICES_THEN )
|| XWPrefs.getNFCToSelfEnabled( m_activity ) .setAction( action )
|| NFCUtils.nfcAvail( m_activity )[0] .setParams( info );
|| WiDirWrapper.enabled() m_dlgt.show( state );
|| BTService.BTAvailable() ) {
DlgState state = new DlgState( DlgID.INVITE_CHOICES_THEN )
.setAction( action )
.setParams( info );
m_dlgt.show( state );
} else {
post( new Runnable() {
public void run() {
DlgClickNotify.InviteMeans means
= DlgClickNotify.InviteMeans.EMAIL;
m_clickCallback.inviteChoiceMade( action, means );
}
});
}
} }
public void doSyncMenuitem() public void doSyncMenuitem()