daily pastebin goal
80%
SHARE
TWEET

Untitled

a guest May 16th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top