Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. /* All the massive/repetitive/boring activity code above */
  2.  
  3. override fun onPrepareOptionsMenu(menu: Menu) {
  4. super.onPrepareOptionsMenu(menu)
  5.  
  6. val filterMenu = menu.findItem(R.id.actionFilter)
  7.  
  8. /*
  9. * Note: the view somehow manages to get ~3px more larger than a normal
  10. * menu icon, i don't really now why the hell this happens and i could not
  11. * fix that - i've spent like 5 hours just trying to make this shit work exacly like the
  12. * default item.
  13. */
  14. filterMenu.setIconWithCount(
  15. requireContext(),
  16. R.drawable.ic_funnel_white_24dp,
  17. filterCount
  18. )
  19. }
  20.  
  21. /* All the massive/repetitive/boring activity code bellow */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement