Merge "Fix Shortcut crash due to invalid Icon type (e.g., all adaptive bitmap shortcuts)" into oc-dev

This commit is contained in:
Hyunyoung Song
2017-05-15 17:36:09 +00:00
committed by Android (Google) Code Review

View File

@@ -1374,7 +1374,7 @@ public class ShortcutService extends IShortcutService.Stub {
case Icon.TYPE_ADAPTIVE_BITMAP: {
bitmap = icon.getBitmap(); // Don't recycle in this case.
maxIconDimension *= (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction());
break;
}
default:
// This shouldn't happen because we've already validated the icon, but