Use tile.getTitle(context) to get tile title.
And switch to getId() instead of title when comparing 2 tiles. This is more accurate and more efficient. Bug: 77600770 Test: robotests Change-Id: I587d90702d98956bf7b420529ac3280351ca4a10
This commit is contained in:
@@ -156,9 +156,9 @@ public abstract class DashboardFragment extends SettingsPreferenceFragment
|
||||
final String key = mDashboardFeatureProvider.getDashboardKeyForTile(tile);
|
||||
final Preference pref = getPreferenceScreen().findPreference(key);
|
||||
if (pref == null) {
|
||||
Log.d(getLogTag(),
|
||||
String.format("Can't find pref by key %s, skipping update summary %s/%s",
|
||||
key, tile.title, tile.summary));
|
||||
Log.d(getLogTag(), String.format(
|
||||
"Can't find pref by key %s, skipping update summary %s/%s",
|
||||
key, tile.getDescription(), tile.summary));
|
||||
return;
|
||||
}
|
||||
pref.setSummary(tile.summary);
|
||||
|
Reference in New Issue
Block a user