Disable suggestion on low memory devices

Change-Id: I9d22170845661fc8b48b116c9b09f758926c096f
Fix: 63157777
Test: make RunSettingsRoboTests
This commit is contained in:
Fan Zhang
2017-07-06 15:59:31 -07:00
parent 08da5d84c0
commit 1e0b51218b
4 changed files with 47 additions and 10 deletions

View File

@@ -29,6 +29,11 @@ import java.util.List;
/** Interface should be implemented if you have added new suggestions */
public interface SuggestionFeatureProvider {
/**
* Whether or not the whole suggestion feature is enabled.
*/
boolean isSuggestionEnabled(Context context);
/**
* Returns true if smart suggestion should be used instead of xml based SuggestionParser.
*/