Base: improve color fetch calculation

this also fix calculation for device without navigation bar

Change-Id: I5ea3fb5dd18dadf1ced0255b3bf6554a7b50079c
Merge remote-tracking branch 'omni/android-4.4' into android-4.4