Add support for early warning query
This CL adds the necessary code to enable the early warning query from the provider. Test: robotests in topic Bug: 71593245 Bug: 71812931 Change-Id: I32e10d1b9f752af672b5d1c6ccb8ba9f2f9cc387
This commit is contained in:
@@ -21,7 +21,6 @@ import static com.android.settings.core.FeatureFlags.BATTERY_SETTINGS_V2;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.net.Uri;
|
||||
import android.os.Process;
|
||||
import android.util.FeatureFlagUtils;
|
||||
import android.util.SparseIntArray;
|
||||
@@ -132,4 +131,9 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
|
||||
public boolean isBatteryV2Enabled() {
|
||||
return FeatureFlagUtils.isEnabled(mContext, BATTERY_SETTINGS_V2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getEarlyWarningSignal(Context context, String id) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user