Merge "Remove the legacy getReplacingActivity() method from feature provider" into tm-dev am: 708c2d2fd5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17799704 Change-Id: Ifa16e70b61a75252c8a5ba9f6fc25f7786be8349 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user