mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
change file name (nothing else)
This commit is contained in:
parent
436d3c2ad0
commit
699eef79cb
6 changed files with 10 additions and 10 deletions
|
@ -138,7 +138,7 @@
|
|||
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
<receiver android:name="RelayReceiver"/>
|
||||
<receiver android:name="RelayTimerReceiver"/>
|
||||
<receiver android:name="NagTurnReceiver"/>
|
||||
<receiver android:name="SMSResendReceiver"/>
|
||||
<receiver android:name="DupeModeTimer"/>
|
||||
|
|
|
@ -372,7 +372,7 @@ public class DBUtils {
|
|||
}
|
||||
|
||||
if ( needsTimer ) {
|
||||
RelayReceiver.setTimer( context );
|
||||
RelayTimerReceiver.setTimer( context );
|
||||
}
|
||||
} // saveSummary
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ public class OnBootReceiver extends BroadcastReceiver {
|
|||
protected static void startTimers( Context context )
|
||||
{
|
||||
NagTurnReceiver.restartTimer( context );
|
||||
RelayReceiver.setTimer( context );
|
||||
RelayTimerReceiver.setTimer( context );
|
||||
SMSResendReceiver.setTimer( context );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ public class PollListPreference extends ListPreference
|
|||
{
|
||||
String valstr = (String)newValue;
|
||||
int val = Integer.parseInt(valstr);
|
||||
RelayReceiver.setTimer( m_context, val * 1000 );
|
||||
RelayTimerReceiver.setTimer( m_context, val * 1000 );
|
||||
|
||||
setSummaryToMatch( valstr );
|
||||
return true;
|
||||
|
|
|
@ -423,7 +423,7 @@ public class RelayService extends XWJIService
|
|||
|
||||
if ( shouldMaintainConnection() ) {
|
||||
long interval_millis = getMaxIntervalSeconds() * 1000;
|
||||
RelayReceiver.setTimer( this, interval_millis );
|
||||
RelayTimerReceiver.setTimer( this, interval_millis );
|
||||
// Log.d( TAG, "onDestroy(): rescheduling in %d ms",
|
||||
// interval_millis );
|
||||
}
|
||||
|
@ -517,7 +517,7 @@ public class RelayService extends XWJIService
|
|||
} else if ( registerWithRelayIfNot( timestamp ) ) {
|
||||
requestMessages( timestamp );
|
||||
}
|
||||
RelayReceiver.setTimer( this );
|
||||
RelayTimerReceiver.setTimer( this );
|
||||
break;
|
||||
case STOP:
|
||||
stopThreads();
|
||||
|
@ -1713,7 +1713,7 @@ public class RelayService extends XWJIService
|
|||
*
|
||||
* Goal: maintain connection by keeping this service alive with
|
||||
* its periodic pings to relay. When it dies or is killed,
|
||||
* notice, and use RelayReceiver's timer to get it restarted a bit
|
||||
* notice, and use RelayTimerReceiver's timer to get it restarted a bit
|
||||
* later. But note: s_lastFCM will not be set when the app is
|
||||
* relaunched.
|
||||
*/
|
||||
|
|
|
@ -27,8 +27,8 @@ import android.content.Context;
|
|||
import android.content.Intent;
|
||||
import android.os.SystemClock;
|
||||
|
||||
public class RelayReceiver extends BroadcastReceiver {
|
||||
private static final String TAG = RelayReceiver.class.getSimpleName();
|
||||
public class RelayTimerReceiver extends BroadcastReceiver {
|
||||
private static final String TAG = RelayTimerReceiver.class.getSimpleName();
|
||||
|
||||
@Override
|
||||
public void onReceive( Context context, Intent intent )
|
||||
|
@ -47,7 +47,7 @@ public class RelayReceiver extends BroadcastReceiver {
|
|||
AlarmManager am =
|
||||
(AlarmManager)context.getSystemService( Context.ALARM_SERVICE );
|
||||
|
||||
Intent intent = new Intent( context, RelayReceiver.class );
|
||||
Intent intent = new Intent( context, RelayTimerReceiver.class );
|
||||
PendingIntent pi = PendingIntent.getBroadcast( context, 0, intent, 0 );
|
||||
|
||||
// Check if we have any relay IDs, since we'll be using them to
|
Loading…
Reference in a new issue