Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- } else if (complicationData.getType() == ComplicationData.TYPE_ICON) {
- Icon icon = complicationData.getIcon();
- Drawable drawable = icon.loadDrawable(getApplicationContext());
- if (drawable instanceof BitmapDrawable) {
- Bitmap bitmap;
- bitmap = ((BitmapDrawable) drawable).getBitmap();
- canvas.drawBitmap(bitmap, complicationsX, mTopComplicationY, null);
- }
Add Comment
Please, Sign In to add comment