Add feature provider for dashboard.
The feature provider contains API that controls whether a new information architecture should be used. By default it's false. Bug: 31768091 Test: make RunSettingsRoboTests Change-Id: I5b177be418def50d877f53dc799e42d06eba95ec
This commit is contained in:
@@ -22,6 +22,7 @@ import android.util.Log;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.core.instrumentation.MetricsFeatureProvider;
|
||||
import com.android.settings.dashboard.DashboardFeatureProvider;
|
||||
import com.android.settings.fuelgauge.PowerUsageFeatureProvider;
|
||||
|
||||
/**
|
||||
@@ -67,6 +68,8 @@ public abstract class FeatureFactory {
|
||||
|
||||
public abstract PowerUsageFeatureProvider getPowerUsageFeatureProvider();
|
||||
|
||||
public abstract DashboardFeatureProvider getDashboardFeatureProvider();
|
||||
|
||||
public static final class FactoryNotFoundException extends RuntimeException {
|
||||
public FactoryNotFoundException(Throwable throwable) {
|
||||
super("Unable to create factory. Did you misconfigure Proguard?", throwable);
|
||||
|
Reference in New Issue
Block a user