Add a suggestion: showing new device features
- New suggestion activity - Removed useless api SuggestionFeatureProvider.isPresent(). - Also updated support activity search indexing icon and summary Change-Id: Ib52cf26a985f57bf0aac918606b10f75bd024639 Fix: 62034077 Fix: 62196070 Test: make RunSettingsRoboTests
This commit is contained in:
@@ -18,6 +18,7 @@ package com.android.settings.dashboard.suggestions;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.support.annotation.NonNull;
|
||||
|
||||
import com.android.settingslib.drawer.Tile;
|
||||
@@ -33,12 +34,14 @@ public interface SuggestionFeatureProvider {
|
||||
*/
|
||||
boolean isSmartSuggestionEnabled(Context context);
|
||||
|
||||
/** Return true if {@code suggestion} is managed by this provider. */
|
||||
boolean isPresent(@NonNull ComponentName suggestion);
|
||||
|
||||
/** Return true if the suggestion has already been completed and does not need to be shown */
|
||||
boolean isSuggestionCompleted(Context context, @NonNull ComponentName suggestion);
|
||||
|
||||
/**
|
||||
* Returns the {@link SharedPreferences} that holds metadata for suggestions.
|
||||
*/
|
||||
SharedPreferences getSharedPrefs(Context context);
|
||||
|
||||
/**
|
||||
* Ranks the list of suggestions in place.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user