Don't disable GPS when we are obscured by location-ui or conndlgs
authorMohammed Sameer <msameer@foolab.org>
Sun, 8 Sep 2013 17:52:21 +0000 (20:52 +0300)
committerMohammed Sameer <msameer@foolab.org>
Sun, 8 Sep 2013 17:52:21 +0000 (20:52 +0300)
commitb12f938a7e89a6fd7d363def86c9390da0e47b17
tree78b0cdf88f88370486850ecfc817ff24f6d9f08d
parent0969456e18d3557b7b22082399ad857b45710b12
Don't disable GPS when we are obscured by location-ui or conndlgs

Achieved by adding a PlatformQuirks QML component which takes care of
forcing camera to be on.

On Harmattan it forces on when we are obscured by location-ui (for positioning terms)
or conndlgs (for connection establishment).

As a side effect, we now prevent display dimming while playing a video in post capture
12 files changed:
qml/CameraView.qml
qml/ImageOverlay.qml
qml/MainPage.qml
qml/PostCaptureView.qml
qml/SettingsView.qml
qml/VideoOverlay.qml
src/harmattan/displaystate.cpp
src/harmattan/displaystate.h
src/harmattan/harmattan.pri
src/harmattan/platformquirks.cpp [new file with mode: 0644]
src/harmattan/platformquirks.h [new file with mode: 0644]
src/main.cpp