Update method isSmartBatteryEnabled()

Check the config value from framework.

Bug: 79698191
Test: RunSettingsRoboTests
Change-Id: I14424e2a96fb3ef3bb7d0f10218266d53e86370d
This commit is contained in:
Lei Yu
2018-05-14 17:44:24 -07:00
parent 3a9fbac582
commit 1254049038
2 changed files with 18 additions and 3 deletions

View File

@@ -131,6 +131,7 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
@Override
public boolean isSmartBatterySupported() {
return false;
return mContext.getResources().getBoolean(
com.android.internal.R.bool.config_smart_battery_available);
}
}