From 3c2a56166cfafe885b046b387de9e2232bb2047c Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 24 Jul 2015 06:10:26 -0700 Subject: [PATCH] move static final to where it can be private --- .../XWords4/src/org/eehouse/android/xw4/NetUtils.java | 6 ++++-- .../android/XWords4/src/org/eehouse/android/xw4/XWApp.java | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetUtils.java index 8454ad987..71624ed0b 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetUtils.java @@ -198,10 +198,12 @@ public class NetUtils { return msgs; } // queryRelay + private static final String FORCE_RELAY_HOST = null; + // private static final String FORCE_RELAY_HOST = "eehouse.org"; public static String forceHost( String host ) { - if ( 0 < XWApp.FORCE_RELAY_HOST.length() ) { - host = XWApp.FORCE_RELAY_HOST; + if ( null != FORCE_RELAY_HOST ) { + host = FORCE_RELAY_HOST; } return host; } diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWApp.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWApp.java index ba0934814..32ffae497 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWApp.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWApp.java @@ -45,8 +45,6 @@ public class XWApp extends Application { public static final boolean UDP_ENABLED = true; public static final boolean SMS_INVITE_ENABLED = true; public static final boolean LOCUTILS_ENABLED = false; - public static final String FORCE_RELAY_HOST = ""; - // public static final String FORCE_RELAY_HOST = "eehouse.org"; public static final String SMS_PUBLIC_HEADER = "-XW4"; public static final int MAX_TRAY_TILES = 7; // comtypes.h