File tree 2 files changed +3
-3
lines changed
lib/src/main/java/org/altbeacon/beacon
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ private void applySettingsChange(AppliedSettings newSettings) {
255
255
BeaconManager .setDistanceModelUpdateUrl (Objects .requireNonNull (settings .getDistanceModelUpdateUrl ()));
256
256
257
257
if (android .os .Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
258
- if (settings .getScanPeriods ().getBackgroundScanPeriodMillis () < 15 *60 *1000 /* 15 min */ &&
258
+ if (settings .getScanPeriods ().getBackgroundBetweenScanPeriodMillis () < 15 *60 *1000 /* 15 min */ &&
259
259
settings .getScanStrategy () instanceof Settings .JobServiceScanStrategy ) {
260
260
LogManager .w (TAG , "Setting a short backgroundBetweenScanPeriod has no effect on " +
261
261
"Android 8+, which is limited to scanning every ~15 minutes" );
@@ -275,7 +275,7 @@ private void applySettingsChange(AppliedSettings newSettings) {
275
275
BeaconManager .setDebug (Boolean .TRUE .equals (settings .getDebug ()));
276
276
Settings .ScanPeriods sp = settings .getScanPeriods ();
277
277
if (sp != null ) {
278
- setBackgroundBetweenScanPeriod (sp .getBackgroundScanPeriodMillis ());
278
+ setBackgroundBetweenScanPeriod (sp .getBackgroundBetweenScanPeriodMillis ());
279
279
setBackgroundScanPeriod (sp .getBackgroundScanPeriodMillis ());
280
280
setForegroundBetweenScanPeriod (sp .getForegroundBetweenScanPeriodMillis ());
281
281
setForegroundScanPeriod (sp .getForegroundScanPeriodMillis ());
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ data class Settings(
207
207
val foregroundScanPeriodMillis : Long = 1100 ,
208
208
val foregroundBetweenScanPeriodMillis : Long = 0 ,
209
209
val backgroundScanPeriodMillis : Long = 30000 ,
210
- val backgroundBetweenScanPeriodMillis : Long = 0
210
+ val backgroundBetweenScanPeriodMillis : Long = 300000
211
211
)
212
212
interface ScanStrategy : Comparable <ScanStrategy > {
213
213
fun clone (): ScanStrategy
You can’t perform that action at this time.
0 commit comments