Merge "Update method isSmartBatteryEnabled()" into pi-dev am: 3feb2f87ff

am: c409db681d

Change-Id: I10d9b63f1a61a10c31bf5c07b8a3192accfe18b1
This commit is contained in:
Lei Yu
2018-05-16 20:13:29 -07:00
committed by android-build-merger
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);
}
}