Merge "Use safe icon when building unavailable slices."

This commit is contained in:
Fan Zhang
2018-11-01 19:13:37 +00:00
committed by Android (Google) Code Review
11 changed files with 24 additions and 5 deletions

View File

@@ -277,7 +277,7 @@ class SliceDataConverter {
final String title = resolveInfo.loadLabel(packageManager).toString();
int iconResource = resolveInfo.getIconResource();
if (iconResource == 0) {
iconResource = R.mipmap.ic_accessibility_generic;
iconResource = R.drawable.ic_accessibility_generic;
}
sliceDataBuilder.setKey(flattenedName)