Make suggestions handle string or int
Evidently metadata bundles turn a single int into an integer rather than a string without telling you. Change-Id: I5c6557bad51981f27a7e213052e2be5bcc3a0a93
This commit is contained in:
@@ -137,10 +137,11 @@ public class SuggestionParser {
|
||||
}
|
||||
|
||||
private boolean isDismissed(Tile suggestion) {
|
||||
String dismissControl = suggestion.metaData.getString(META_DATA_DISMISS_CONTROL);
|
||||
if (dismissControl == null) {
|
||||
Object dismissObj = suggestion.metaData.get(META_DATA_DISMISS_CONTROL);
|
||||
if (dismissObj == null) {
|
||||
return false;
|
||||
}
|
||||
String dismissControl = String.valueOf(dismissObj);
|
||||
String keyBase = suggestion.intent.getComponent().flattenToShortString();
|
||||
if (!mSharedPrefs.contains(keyBase + SETUP_TIME)) {
|
||||
mSharedPrefs.edit()
|
||||
|
||||
Reference in New Issue
Block a user