Removed the "only one return" rule of PMD, because I see little to no
benefit in following that warning.
Fixed all PMD warnings in MainActvity.