Simplified for-loop.
Merge branch 'master' of https://github.com/Taig/PopupMenuCompat
Minor code style changes.