Merge "Revert "Update BatterySettingsFeatureProvider to an activity-friendly interface."" into sc-dev am: f9acbaf425
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14185089 Change-Id: I20cda250c6b5b44b6901c93a04a65607bfc05ca3
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
|
||||
package com.android.settings.fuelgauge;
|
||||
|
||||
import android.content.ComponentName;
|
||||
|
||||
/**
|
||||
* Feature provider for battery settings usage.
|
||||
*/
|
||||
@@ -26,6 +24,6 @@ public interface BatterySettingsFeatureProvider {
|
||||
/**
|
||||
* Get replacement activity for a given activity or fragment path.
|
||||
*/
|
||||
ComponentName getReplacingActivity(ComponentName originalActivity);
|
||||
String getReplacingActivityName(String originalActivity);
|
||||
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
package com.android.settings.fuelgauge;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
|
||||
/**
|
||||
@@ -31,7 +30,7 @@ public class BatterySettingsFeatureProviderImpl implements BatterySettingsFeatur
|
||||
}
|
||||
|
||||
@Override
|
||||
public ComponentName getReplacingActivity(ComponentName originalActivity) {
|
||||
public String getReplacingActivityName(String originalActivity) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user