diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/UpdateCheckReceiver.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/UpdateCheckReceiver.java index ec1bf5ca6..6d2106d54 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/UpdateCheckReceiver.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/UpdateCheckReceiver.java @@ -93,27 +93,22 @@ public class UpdateCheckReceiver extends BroadcastReceiver { public static void restartTimer( Context context ) { - if ( BuildConfig.DEBUG ) { - DbgUtils.logf( "UpdateCheckReceiver.restartTimer(): dropping because" - + " debug builds can't be updated" ); - } else { - AlarmManager am = - (AlarmManager)context.getSystemService( Context.ALARM_SERVICE ); + AlarmManager am = + (AlarmManager)context.getSystemService( Context.ALARM_SERVICE ); - Intent intent = new Intent( context, UpdateCheckReceiver.class ); - PendingIntent pi = PendingIntent.getBroadcast( context, 0, intent, 0 ); - am.cancel( pi ); + Intent intent = new Intent( context, UpdateCheckReceiver.class ); + PendingIntent pi = PendingIntent.getBroadcast( context, 0, intent, 0 ); + am.cancel( pi ); - long interval_millis = INTERVAL_ONEDAY; - if ( !devOK( context ) ) { - interval_millis *= INTERVAL_NDAYS; - } - interval_millis = (interval_millis / 2) - + Math.abs(Utils.nextRandomInt() % interval_millis); - am.setInexactRepeating( AlarmManager.ELAPSED_REALTIME_WAKEUP, - SystemClock.elapsedRealtime() + interval_millis, - interval_millis, pi ); + long interval_millis = INTERVAL_ONEDAY; + if ( !devOK( context ) ) { + interval_millis *= INTERVAL_NDAYS; } + interval_millis = (interval_millis / 2) + + Math.abs(Utils.nextRandomInt() % interval_millis); + am.setInexactRepeating( AlarmManager.ELAPSED_REALTIME_WAKEUP, + SystemClock.elapsedRealtime() + interval_millis, + interval_millis, pi ); } // Is app upgradeable OR have we installed any dicts?