From 699eef79cb727783a16109ed6768eb574034e97e Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 9 Jun 2020 16:04:29 -0700 Subject: [PATCH] change file name (nothing else) --- xwords4/android/app/src/main/AndroidManifest.xml | 2 +- .../app/src/main/java/org/eehouse/android/xw4/DBUtils.java | 2 +- .../main/java/org/eehouse/android/xw4/OnBootReceiver.java | 2 +- .../java/org/eehouse/android/xw4/PollListPreference.java | 2 +- .../src/main/java/org/eehouse/android/xw4/RelayService.java | 6 +++--- .../xw4/{RelayReceiver.java => RelayTimerReceiver.java} | 6 +++--- 6 files changed, 10 insertions(+), 10 deletions(-) rename xwords4/android/app/src/main/java/org/eehouse/android/xw4/{RelayReceiver.java => RelayTimerReceiver.java} (91%) diff --git a/xwords4/android/app/src/main/AndroidManifest.xml b/xwords4/android/app/src/main/AndroidManifest.xml index da420190f..b5c2c1b08 100644 --- a/xwords4/android/app/src/main/AndroidManifest.xml +++ b/xwords4/android/app/src/main/AndroidManifest.xml @@ -138,7 +138,7 @@ - + diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DBUtils.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DBUtils.java index e507d312f..d29cce2b3 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DBUtils.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DBUtils.java @@ -372,7 +372,7 @@ public class DBUtils { } if ( needsTimer ) { - RelayReceiver.setTimer( context ); + RelayTimerReceiver.setTimer( context ); } } // saveSummary diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/OnBootReceiver.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/OnBootReceiver.java index e483120b4..dcff3fe47 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/OnBootReceiver.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/OnBootReceiver.java @@ -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 ); } } diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/PollListPreference.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/PollListPreference.java index 58f7a618d..2c69c7514 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/PollListPreference.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/PollListPreference.java @@ -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; diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayService.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayService.java index 6eb4fb343..5e47cc29f 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayService.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayService.java @@ -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. */ diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayReceiver.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayTimerReceiver.java similarity index 91% rename from xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayReceiver.java rename to xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayTimerReceiver.java index aacb76529..4d253814b 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayReceiver.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/RelayTimerReceiver.java @@ -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