Bug 1035553 - [User Story] Restricting mobile data usage on a per-app basis

The code of the methods drawWifiLayer and drawMobileLayer is almost equal, IMO we can increase the code readability if they are joined together.