Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* All the massive/repetitive/boring activity code above */
- override fun onPrepareOptionsMenu(menu: Menu) {
- super.onPrepareOptionsMenu(menu)
- val filterMenu = menu.findItem(R.id.actionFilter)
- /*
- * Note: the view somehow manages to get ~3px more larger than a normal
- * menu icon, i don't really now why the hell this happens and i could not
- * fix that - i've spent like 5 hours just trying to make this shit work exacly like the
- * default item.
- */
- filterMenu.setIconWithCount(
- requireContext(),
- R.drawable.ic_funnel_white_24dp,
- filterCount
- )
- }
- /* All the massive/repetitive/boring activity code bellow */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement