summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensors/winrt/winrtambientlightsensor.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@digia.com>2014-06-02 12:46:45 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-06-02 13:34:04 +0200
commit87b569ccc4df161e33d41f7a5f1f25eced6f65c3 (patch)
tree8149378e060c1bfbc32748e0bb187ed7705506e9 /src/plugins/sensors/winrt/winrtambientlightsensor.cpp
parent9efc5bea41e7acbce55c37b49b167092b71114a9 (diff)
Android: don't crash if Gravity is not supportedstable
The QtSensors documentation says that if Gravity mode is not available, we should silently fall back to the default Combined mode. In addition, add null pointer checks in case we try to ask for non-existent sensors in the future. Task-number: QTBUG-39335 Change-Id: I6c18622d081db4e3a7d07c744bb0b746e3f5c6ff Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/plugins/sensors/winrt/winrtambientlightsensor.cpp')
0 files changed, 0 insertions, 0 deletions