Deprecate location modes
1. Mark public fields as deprecated: LOCATION_MODE, LOCATION_MODE_HIGH_ACCURACY, LOCATION_MODE_SENSORS_ONLY, LOCATION_MODE_BATTERY_SAVING, LOCATION_MODE_OFF. 2. Add new public methods to LocationManager: setLocationEnabled(boolean) isLocationEnabled() setLocationProviderEnabled(String, boolean) 3. Remove LOCATION_PREVIOUS_MODE and constant LOCATION_MODE_PREVIOUS. Refactor code that references LOCATION_MODE_PREVIOUS to use LocationManager.setLocationEnabled or LOCATION_MODE_HIGH_ACCURACY. 4. Mark deprecated fields and methods as removed: LOCATION_PROVIDERS_ALLOWED, setLocationProviderEnabled(), isLocationProviderEnabled() 5. Refactor logic in Settings app and Quick Settings to call LocationManager.setLocationEnabled() instead of setting location mode. Bug: 70990911 Test: Manual Change-Id: Ia49b385f8b6a358b62291983eb0146af0ecf8e02
Loading
Please register or sign in to comment