diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/RelayReceiver.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/RelayReceiver.java index bfd84f88d..608ea875c 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/RelayReceiver.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/RelayReceiver.java @@ -38,7 +38,7 @@ public class RelayReceiver extends BroadcastReceiver { public static void setTimer( Context context ) { - setTimer( context, 1000 * XWPrefs.getProxyInterval( context ) ); + setTimer( context, 1000 * XWPrefs.getProxyIntervalSeconds( context ) ); } public static void setTimer( Context context, long interval_millis ) @@ -57,7 +57,7 @@ public class RelayReceiver extends BroadcastReceiver { am.set( AlarmManager.ELAPSED_REALTIME_WAKEUP, fire_millis, pi ); } else { DbgUtils.logf( "RelayReceiver.restartTimer(): cancelling" ); - // will happen if user's set getProxyInterval to return 0 + // will happen if user's set getProxyIntervalSeconds to return 0 am.cancel( pi ); } } diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWPrefs.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWPrefs.java index 5ad369133..137f3d4ba 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWPrefs.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWPrefs.java @@ -145,7 +145,7 @@ public class XWPrefs { return result; } - public static long getProxyInterval( Context context ) + public static long getProxyIntervalSeconds( Context context ) { String value = getPrefsString( context, R.string.key_connect_frequency ); long result;