Merge "Fix Shortcut crash due to invalid Icon type (e.g., all adaptive bitmap shortcuts)" into oc-dev
am: 10abacf3f3
Change-Id: I1872725e46ac5ccf9f51d2a0818a93d55a094d01
This commit is contained in:
@@ -1374,7 +1374,7 @@ public class ShortcutService extends IShortcutService.Stub {
|
|||||||
case Icon.TYPE_ADAPTIVE_BITMAP: {
|
case Icon.TYPE_ADAPTIVE_BITMAP: {
|
||||||
bitmap = icon.getBitmap(); // Don't recycle in this case.
|
bitmap = icon.getBitmap(); // Don't recycle in this case.
|
||||||
maxIconDimension *= (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction());
|
maxIconDimension *= (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction());
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
// This shouldn't happen because we've already validated the icon, but
|
// This shouldn't happen because we've already validated the icon, but
|
||||||
|
|||||||
Reference in New Issue
Block a user