Remove code that check for dashboard feature.
- remove DashboardFeatureProvider.isEnabled() and all relating code and tests. Bug: 35764802 Test: make RunSettingsRoboTests Change-Id: If7796677abc8904b7436525836d50cdef38e37a4
This commit is contained in:
@@ -68,11 +68,6 @@ public class DashboardFeatureProviderImpl implements DashboardFeatureProvider {
|
||||
mMetricsFeatureProvider = FeatureFactory.getFactory(context).getMetricsFeatureProvider();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DashboardCategory getTilesForCategory(String key) {
|
||||
return mCategoryManager.getTilesByCategory(mContext, key);
|
||||
@@ -81,9 +76,6 @@ public class DashboardFeatureProviderImpl implements DashboardFeatureProvider {
|
||||
@Override
|
||||
public List<Preference> getPreferencesForCategory(Activity activity, Context context,
|
||||
int sourceMetricsCategory, String key) {
|
||||
if (!isEnabled()) {
|
||||
return null;
|
||||
}
|
||||
final DashboardCategory category = getTilesForCategory(key);
|
||||
if (category == null) {
|
||||
Log.d(TAG, "NO dashboard tiles for " + TAG);
|
||||
@@ -177,7 +169,7 @@ public class DashboardFeatureProviderImpl implements DashboardFeatureProvider {
|
||||
@Override
|
||||
public ProgressiveDisclosureMixin getProgressiveDisclosureMixin(Context context,
|
||||
DashboardFragment fragment) {
|
||||
return new ProgressiveDisclosureMixin(context, this, mMetricsFeatureProvider, fragment);
|
||||
return new ProgressiveDisclosureMixin(context, mMetricsFeatureProvider, fragment);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user