Make getting height on earlier version of Android working