Fixes BACON-1293 from https://github.com/CyanogenMod/android_device_oppo_msm8974-common/commit/3880837539118498a6c7470007655ea06d3d6b33

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>