Merge "Hide BatteryManagerPreference if there is no adaptive charging" into udc-dev
This commit is contained in:
@@ -51,6 +51,7 @@ public class BatteryManagerPreferenceController extends BasePreferenceController
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
return mPowerUsageFeatureProvider.isBatteryManagerSupported()
|
||||
&& mPowerUsageFeatureProvider.isAdaptiveChargingSupported()
|
||||
? AVAILABLE_UNSEARCHABLE : UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user