Add new method getExtraIntentAction() in DashboardFeatureProvider.

Add a new method to get the extra intent-filter action to be used
to query the dynamic dashboard tiles.

Bug: 32739952
Test: make RunSettingsRoboTests
Change-Id: I96d9d8bd32ebe34b7c0df00c3fb4d8900b476c94
This commit is contained in:
Doris Ling
2016-12-12 16:20:22 -08:00
parent 12010156ab
commit 3d9224fd82
4 changed files with 20 additions and 1 deletions

View File

@@ -51,7 +51,8 @@ public class DashboardFeatureProviderImpl implements DashboardFeatureProvider {
private final CategoryManager mCategoryManager;
public DashboardFeatureProviderImpl(Context context) {
this(context.getApplicationContext(), CategoryManager.get(context));
mContext = context;
mCategoryManager = CategoryManager.get(context, getExtraIntentAction());
}
@VisibleForTesting
@@ -182,4 +183,9 @@ public class DashboardFeatureProviderImpl implements DashboardFeatureProvider {
DashboardFragment fragment) {
return new ProgressiveDisclosureMixin(context, this, fragment);
}
@Override
public String getExtraIntentAction() {
return null;
}
}