Remove GPS single shot request

GPS single shot requests can get wedged when the GPS chipset is unable
to return locations for a long periods of time. Removing this request
until the underlying issue can be solved.

Bug: 123292126
Test: presubmits
Change-Id: I6ce55e8aa0062b50bd7d1da1d279b3a7095dc6a7
This commit is contained in:
Soonil Nagarkar
2019-05-24 10:20:55 -07:00
parent c1a72db862
commit a98dc82929

View File

@@ -162,9 +162,6 @@ public final class TwilightService extends SystemService
if (mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) {
mLocationManager.requestSingleUpdate(
LocationManager.NETWORK_PROVIDER, this, Looper.getMainLooper());
} else if (mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
mLocationManager.requestSingleUpdate(
LocationManager.GPS_PROVIDER, this, Looper.getMainLooper());
}
}