support relay inviting based on an explicit constant rather than

whether it's a debug build.
This commit is contained in:
Eric House 2015-07-11 17:54:34 -07:00
parent a96afb2892
commit 03555f2f83
2 changed files with 2 additions and 1 deletions

View file

@ -626,7 +626,7 @@ public class DlgDelegate {
items.add( getString( R.string.invite_choice_nfc ) );
means.add( DlgClickNotify.InviteMeans.NFC );
}
if ( BuildConfig.DEBUG ) {
if ( XWApp.RELAYINVITE_SUPPORTED ) {
items.add( getString( R.string.invite_choice_relay ) );
means.add( DlgClickNotify.InviteMeans.RELAY );
}

View file

@ -37,6 +37,7 @@ public class XWApp extends Application {
public static final boolean GCMSUPPORTED = true;
public static final boolean ATTACH_SUPPORTED = true;
public static final boolean REMATCH_SUPPORTED = true;
public static final boolean RELAYINVITE_SUPPORTED = true;
public static final boolean DEBUG_LOCKS = false;
public static final boolean LOG_LIFECYLE = false;
public static final boolean DEBUG_EXP_TIMERS = false;