OSDN Git Service

Address API council comments.
authorWei Wang <weiwa@google.com>
Fri, 1 Feb 2019 01:33:48 +0000 (17:33 -0800)
committerWei Wang <weiwa@google.com>
Tue, 26 Mar 2019 21:06:16 +0000 (14:06 -0700)
Bug: 123587501
Test: Manual
Change-Id: I72582ca6d8da8b1fe7bc4fc1b4b4db1fad6ca7a7

src/com/android/settings/applications/ApplicationFeatureProviderImpl.java
tests/robotests/src/com/android/settings/applications/ApplicationFeatureProviderImplTest.java

index 4bda99e..55e85f9 100644 (file)
@@ -145,7 +145,7 @@ public class ApplicationFeatureProviderImpl implements ApplicationFeatureProvide
                 mContext.getString(R.string.config_settingsintelligence_package_name));
         final LocationManager locationManager =
                 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
-        final String locationHistoryPackage = locationManager.getLocationControllerExtraPackage();
+        final String locationHistoryPackage = locationManager.getExtraLocationControllerPackage();
         if (locationHistoryPackage != null) {
             keepEnabledPackages.add(locationHistoryPackage);
         }
index ebbf5e0..e22b29b 100644 (file)
@@ -272,7 +272,7 @@ public final class ApplicationFeatureProviderImplTest {
 
         // Spy the real context to mock LocationManager.
         Context spyContext = spy(RuntimeEnvironment.application);
-        when(mLocationManager.getLocationControllerExtraPackage()).thenReturn(testLocationHistory);
+        when(mLocationManager.getExtraLocationControllerPackage()).thenReturn(testLocationHistory);
         when(spyContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager);
 
         ReflectionHelpers.setField(mProvider, "mContext", spyContext);