change method name

This commit is contained in:
Eric House 2015-05-20 07:04:10 -07:00
parent 1e5f08c740
commit e9c40e5a75
2 changed files with 3 additions and 3 deletions

View file

@ -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 );
}
}

View file

@ -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;