Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[hybrisadaptor] Deal with sensor type aliasing changes. JB#43020
It seems that in later android header versions sensor type values have been changed from #define constants into enumeration values. And while previously SENSOR_TYPE_MAGNETIC_FIELD was alias for SENSOR_TYPE_GEOMAGNETIC_FIELD, now it is the other way around. Which then has the net effect of: Attempt to provide fallback value for SENSOR_TYPE_MAGNETIC_FIELD with symbolic name results in compilation failures. Use hard-coded fallback values for both SENSOR_TYPE_GEOMAGNETIC_FIELD and SENSOR_TYPE_MAGNETIC_FIELD to break dependency on what types android header considers to be aliases vs not. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information