aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-06 20:04:28 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-24 09:47:37 -0700
commit28107efd30f87334641aab4753e4862961231cc7 (patch)
tree04e9e581e1d73d84fad021f5d4ddfc8e4cdb92e3 /mobile-widgets
parent4638936a2276e0b8aec4c1146539c64702f60a2d (diff)
downloadsubsurface-28107efd30f87334641aab4753e4862961231cc7.tar.gz
mobile: show location service warning
Google play now requires that we show an explicit notification when turning on background location. This is an attempt to fulfill that requirement - we won't know if this is 'good enough' until we submit the app, though. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/main.qml38
1 files changed, 38 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 2c5a5a3f2..e032562f7 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -423,6 +423,10 @@ if you have network connectivity and want to sync your data to cloud storage."),
onTriggered: {
globalDrawer.close();
locationServiceEnabled = !locationServiceEnabled
+ if (locationServiceEnabled) {
+ locationWarning.open()
+ }
+
}
}
},
@@ -766,6 +770,40 @@ if you have network connectivity and want to sync your data to cloud storage."),
}
}
+ Kirigami.OverlaySheet {
+ id: locationWarning
+ ColumnLayout {
+ width: locationWarning.width - Kirigami.Units.gridUnit
+ spacing: Kirigami.Units.gridUnit
+ TemplateTitle {
+ Layout.alignment: Qt.AlignHCenter
+ title: qsTr("Location Service Enabled")
+ }
+ Text {
+ Layout.fillWidth: true
+ wrapMode: Text.WrapAtWordBoundaryOrAnywhere
+ text: qsTr("This service collects location data to enable you to track the GPS coordinates of your dives. " +
+ "This will attempt to continue to collect location data, even if the app is closed or your phone screen locked.")
+ }
+ Text {
+ Layout.fillWidth: true
+ wrapMode: Text.WrapAtWordBoundaryOrAnywhere
+ text: qsTr("The location data are not used in way, except when you apply the location data to the dives in your dive list on this device.")
+ }
+ Text {
+ Layout.fillWidth: true
+ wrapMode: Text.WrapAtWordBoundaryOrAnywhere
+ text: qsTr("By default, the location data are never transferred to the cloud or to any other service. However, in order to allow debugging " +
+ "of location data related issues, you can explicitly enable storing those location data in the cloud by enabling the corresponding option in the advanced settings.")
+ }
+ TemplateButton {
+ Layout.alignment: Qt.AlignHCenter
+ text: qsTr("Understood")
+ onClicked: { locationWarning.close() }
+ }
+ }
+ }
+
Label {
id: textBlock
visible: !initialized