Merge "Add new method getExtraIntentAction() in DashboardFeatureProvider."
This commit is contained in:
@@ -88,5 +88,9 @@ public interface DashboardFeatureProvider {
|
||||
ProgressiveDisclosureMixin getProgressiveDisclosureMixin(Context context,
|
||||
DashboardFragment fragment);
|
||||
|
||||
/**
|
||||
* Returns additional intent filter action for dashboard tiles
|
||||
*/
|
||||
String getExtraIntentAction();
|
||||
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user