Update BatterySettingsFeatureProvider interface
Added context to each method for more flexibility. Bug: 276399056 Test: robotests Change-Id: I0bbf8841775bc2f584d66c59c2c78ed4e5c951c2
This commit is contained in:
@@ -16,16 +16,18 @@
|
||||
|
||||
package com.android.settings.fuelgauge;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
/** Feature provider implementation for battery settings usage. */
|
||||
public class BatterySettingsFeatureProviderImpl implements BatterySettingsFeatureProvider {
|
||||
|
||||
@Override
|
||||
public boolean isManufactureDateAvailable(long manufactureDateMs) {
|
||||
public boolean isManufactureDateAvailable(Context context, long manufactureDateMs) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFirstUseDateAvailable(long firstUseDateMs) {
|
||||
public boolean isFirstUseDateAvailable(Context context, long firstUseDateMs) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user