Pass component name into SuggestionFeatureProvider
So that the provider can be used for more than one suggestion. Test: Robolectric test for implementation of the provider Bug: 62039057 Change-Id: Ibea41ea6d98e67c55ec157556675e854f3ea31c4
This commit is contained in:
@@ -16,8 +16,10 @@
|
||||
|
||||
package com.android.settings.dashboard.suggestions;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
@@ -42,12 +44,12 @@ public class SuggestionFeatureProviderImpl implements SuggestionFeatureProvider
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPresent(String className) {
|
||||
public boolean isPresent(@NonNull ComponentName component) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSuggestionCompleted(Context context) {
|
||||
public boolean isSuggestionCompleted(Context context, @NonNull ComponentName component) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user