Remove the old battery page
This CL removes PowerUsageSummaryLegacy and PowerUsageAdvancedLegacy and their related layouts and strigns. Also remove the isBatteryV2Enabled method in feature provider. Change-Id: I1ec30f713d733ed24335a3e698fb515751232948 Fixes: 76027338 Test: robo test still pass
This commit is contained in:
@@ -16,13 +16,10 @@
|
||||
|
||||
package com.android.settings.fuelgauge;
|
||||
|
||||
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.os.Process;
|
||||
import android.util.FeatureFlagUtils;
|
||||
import android.util.SparseIntArray;
|
||||
|
||||
import com.android.internal.os.BatterySipper;
|
||||
@@ -127,11 +124,6 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
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