Guest User

Untitled

a guest
May 16th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. } else if (complicationData.getType() == ComplicationData.TYPE_ICON) {
  2. Icon icon = complicationData.getIcon();
  3.  
  4. Drawable drawable = icon.loadDrawable(getApplicationContext());
  5.  
  6. if (drawable instanceof BitmapDrawable) {
  7. Bitmap bitmap;
  8. bitmap = ((BitmapDrawable) drawable).getBitmap();
  9. canvas.drawBitmap(bitmap, complicationsX, mTopComplicationY, null);
  10. }
Add Comment
Please, Sign In to add comment