mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-24 07:58:34 +01:00
change method name
This commit is contained in:
parent
1e5f08c740
commit
e9c40e5a75
2 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ public class RelayReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
public static void setTimer( Context context )
|
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 )
|
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 );
|
am.set( AlarmManager.ELAPSED_REALTIME_WAKEUP, fire_millis, pi );
|
||||||
} else {
|
} else {
|
||||||
DbgUtils.logf( "RelayReceiver.restartTimer(): cancelling" );
|
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 );
|
am.cancel( pi );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,7 +145,7 @@ public class XWPrefs {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static long getProxyInterval( Context context )
|
public static long getProxyIntervalSeconds( Context context )
|
||||||
{
|
{
|
||||||
String value = getPrefsString( context, R.string.key_connect_frequency );
|
String value = getPrefsString( context, R.string.key_connect_frequency );
|
||||||
long result;
|
long result;
|
||||||
|
|
Loading…
Add table
Reference in a new issue