Provide the flexibility to add more tip detector
Bug: 309054332 Test: robotests Change-Id: I650141072b6de6c4dcdbbb853fb9997295d6e929
This commit is contained in:
@@ -18,6 +18,10 @@ package com.android.settings.fuelgauge;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.android.settings.fuelgauge.batterytip.tips.BatteryTip;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/** Feature provider for battery settings usage. */
|
||||
public interface BatterySettingsFeatureProvider {
|
||||
|
||||
@@ -29,4 +33,7 @@ public interface BatterySettingsFeatureProvider {
|
||||
|
||||
/** Check whether the battery information page is enabled in the About phone page */
|
||||
boolean isBatteryInfoEnabled(Context context);
|
||||
|
||||
/** A way to add more battery tip detectors. */
|
||||
void addBatteryTipDetector(Context context, List<BatteryTip> tips);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user