Remove the redundant constructor of SuggestionFeatureProviderImpl
Fix: 175167313 Test: robotest Change-Id: I7ebbaf92398a8300971d592e2ee7a6e0d82c1d2f
This commit is contained in:
@@ -102,7 +102,10 @@ public abstract class FeatureFactory {
|
||||
|
||||
public abstract AssistGestureFeatureProvider getAssistGestureFeatureProvider();
|
||||
|
||||
public abstract SuggestionFeatureProvider getSuggestionFeatureProvider(Context context);
|
||||
/**
|
||||
* Gets implementation for the Suggestion Feature provider.
|
||||
*/
|
||||
public abstract SuggestionFeatureProvider getSuggestionFeatureProvider();
|
||||
|
||||
public abstract SupportFeatureProvider getSupportFeatureProvider(Context context);
|
||||
|
||||
|
||||
@@ -225,10 +225,9 @@ public class FeatureFactoryImpl extends FeatureFactory {
|
||||
}
|
||||
|
||||
@Override
|
||||
public SuggestionFeatureProvider getSuggestionFeatureProvider(Context context) {
|
||||
public SuggestionFeatureProvider getSuggestionFeatureProvider() {
|
||||
if (mSuggestionFeatureProvider == null) {
|
||||
mSuggestionFeatureProvider = new SuggestionFeatureProviderImpl(
|
||||
context.getApplicationContext());
|
||||
mSuggestionFeatureProvider = new SuggestionFeatureProviderImpl();
|
||||
}
|
||||
return mSuggestionFeatureProvider;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user