
Each time the device connects to a wifi network, this waits for 2 minutes, then if the wifi is still connected, it re-schedules the index update to happen now. The goal is to favor unmetered networks as much as possible when downloading the index and any automatic app updates. This is only needed on older platforms, JobScheduler handles this for us on android-21+