Refactor setting fullscreen flags
Update gradle and build tools