fix crash on old (2.3) devices

Was already using the safe test for wifidirect everywhere else...
This commit is contained in:
Eric House 2017-04-10 20:32:11 -07:00
parent c774780730
commit cbac691be3

View file

@ -82,7 +82,7 @@ public class InviteChoicesAlert extends DlgDelegateAlert {
items.add( getString( R.string.invite_choice_relay ) ); items.add( getString( R.string.invite_choice_relay ) );
means.add( InviteMeans.RELAY ); means.add( InviteMeans.RELAY );
} }
if ( WiDirService.enabled() ) { if ( WiDirWrapper.enabled() ) {
items.add( getString( R.string.invite_choice_p2p ) ); items.add( getString( R.string.invite_choice_p2p ) );
means.add( InviteMeans.WIFIDIRECT ); means.add( InviteMeans.WIFIDIRECT );
} }