Solving too complex methods

This pull request solves all "too complex method" warnings in Androidstudio.