Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b436898 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

Add DeviceIdle constraint to start FullScan (ObserverService)

parent 389ee9c4
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -291,6 +291,7 @@ public abstract class CommonUtils {
        final Constraints constraints = new Constraints.Builder()
                .setRequiredNetworkType(NetworkType.CONNECTED)
                .setRequiresBatteryNotLow(true)
                .setRequiresDeviceIdle(true)
                .build();

        final PeriodicWorkRequest periodicFullScanRequest =