Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
- {
- TypedValue typedValue = new TypedValue();
- Resources.Theme theme = getTheme();
- theme.resolveAttribute(R.attr.colorPrimaryDark, typedValue, true);
- int color = typedValue.data;
- Bitmap bm = BitmapFactory.decodeResource(getResources(), R.drawable.ic_keyline_grid_recents);
- ActivityManager.TaskDescription td = new ActivityManager.TaskDescription(null, bm, color);
- setTaskDescription(td);
- bm.recycle();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement