Force trying to restart scanning later if bluetooth is detected off
@@ -327,6 +327,7 @@ public abstract class CycledLeScanner {
mLastScanCycleEndTime = SystemClock.elapsedRealtime();
} else {
LogManager.d(TAG, "Bluetooth is disabled. Cannot scan for beacons.");
+ mRestartNeeded = true;
}
}
mNextScanCycleStartTime = getNextScanStartTime();
