Move code from SuggestionChecks to FeatureProvider
This is step one to deprecate SuggestionChecks. Moving logic into SuggestionFeatureProvider allows potential logic override and improves testability. Also moved isSuggestionComplete tests to corresponding activity/pref controller test. Bug: 65065268 Test: robotests Change-Id: I2071d30fc58bb84acad2083ca03cfcf7d41f10cb
This commit is contained in:
@@ -54,7 +54,7 @@ public interface SuggestionFeatureProvider {
|
||||
boolean isSmartSuggestionEnabled(Context context);
|
||||
|
||||
/** Return true if the suggestion has already been completed and does not need to be shown */
|
||||
boolean isSuggestionCompleted(Context context, @NonNull ComponentName suggestion);
|
||||
boolean isSuggestionComplete(Context context, @NonNull ComponentName suggestion);
|
||||
|
||||
/**
|
||||
* Returns the {@link SharedPreferences} that holds metadata for suggestions.
|
||||
|
||||
Reference in New Issue
Block a user