Remove the legacy getReplacingActivity() method from feature provider

Bug: 195306545
Test: make RunSettingsRoboTests
Change-Id: Ie7ae30ad671ec2ee2659e64ee4f191728edab4e8
This commit is contained in:
ykhung
2022-04-18 13:55:23 +08:00
committed by YK Hung
parent edf39d0e45
commit 0f8ee91e1e
2 changed files with 2 additions and 17 deletions

View File

@@ -18,14 +18,7 @@ package com.android.settings.fuelgauge;
import android.content.ComponentName;
/**
* Feature provider for battery settings usage.
*/
/** Feature provider for battery settings usage. */
public interface BatterySettingsFeatureProvider {
/**
* Get replacement activity for a given activity or fragment path.
*/
ComponentName getReplacingActivity(ComponentName originalActivity);
}

View File

@@ -16,12 +16,9 @@
package com.android.settings.fuelgauge;
import android.content.ComponentName;
import android.content.Context;
/**
* Feature provider implementation for battery settings usage.
*/
/** Feature provider implementation for battery settings usage. */
public class BatterySettingsFeatureProviderImpl implements BatterySettingsFeatureProvider {
protected Context mContext;
@@ -29,9 +26,4 @@ public class BatterySettingsFeatureProviderImpl implements BatterySettingsFeatur
public BatterySettingsFeatureProviderImpl(Context context) {
mContext = context.getApplicationContext();
}
@Override
public ComponentName getReplacingActivity(ComponentName originalActivity) {
return originalActivity;
}
}