@RequiresApi(O) static Icon createAdaptiveIcon(final AdaptiveIconDrawable drawable) {
		final int width = drawable.getIntrinsicWidth() * 3 / 2, height = drawable.getIntrinsicHeight() * 3 / 2,
				start = drawable.getIntrinsicWidth() / 4, top = drawable.getIntrinsicHeight() / 4;
		drawable.setBounds(start, top, width - start, height - top);
		final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
		final Canvas canvas = new Canvas(bitmap);
		drawable.draw(canvas);
		return Icon.createWithAdaptiveBitmap(bitmap);
	}
Helper for shortcut icon.

Created by Oasis on 2017/9/18.
shared/src/main/java/com/oasisfeng/island/shortcut/ShortcutIcons.java