Invert conditional logic for logging "disable ScanJob" warning
@@ -573,7 +573,7 @@ public class BeaconManager {
" availble prior to Android 5.0");
return;
}
- if (enabled && android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ if (!enabled && android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
LogManager.w(TAG, "Disabling ScanJobs on Android 8+ may disable delivery of "+
"beacon callbacks in the background unless a foreground service is active.");
}
