Skip to content

Commit 55e2799

Browse files
committed
add link to the privacy policy page
1 parent 7eb62eb commit 55e2799

4 files changed

Lines changed: 19 additions & 5 deletions

File tree

App.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import React from 'react';
22
import {Component} from 'react';
3-
import { Alert, InteractionManager, View, Text, BackHandler } from 'react-native';
3+
import { Alert, InteractionManager, View, Text, BackHandler, Linking } from 'react-native';
44
import { NavigationContainer } from '@react-navigation/native';
55
import {storeData,fetchData} from './src/utils/store';
66

77
import AppNavigation from './src/components/app-navigation';
8+
9+
810
import {Spinner} from 'native-base';
911
import BackgroundGeolocation, {
1012
State,
@@ -318,6 +320,12 @@ class NotificationLocalisation extends Component {
318320
<Dialog.Description style={{lineHeight: 24,textAlign: 'center'}}>
319321
Overland will use your location in the background. You can stop tracking at any time.
320322
</Dialog.Description>
323+
<View style={{alignItems: 'center'}}>
324+
<Text style={{fontSize: 16, textDecorationLine: 'underline',marginTop: 20,marginBottom: 20,color: "#007ff9"}}
325+
onPress={() => {Linking.openURL('http://htmlpreview.github.io/?https://github.com/OpenHumans/Overland_android/blob/dev/privacy_policy.html')}}>
326+
Access to privacy policy
327+
</Text>
328+
</View>
321329
<View style={{marginTop:28,marginBottom: 14,flexDirection: 'row', alignItems: 'center',justifyContent:'space-between'}} >
322330
<Dialog.Button label="No Thanks" onPress={this.handleQuit} style={{fontWeight:"bold"}} wrapperStyle={{height: 52}} color="#007ff9"/>
323331
<Dialog.Button label="Turn On" onPress={this.handleStart} style={{backgroundColor: '#007ff9',borderRadius:5,paddingHorizontal:18,paddingVertical:14,fontWeight:"bold"}} wrapperStyle={{height: 52}} color="#fff"/>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ In a first terminal
213213

214214
`react-native start`
215215

216-
In a first terminal
216+
In a second terminal
217217

218218
`npx react-native run-android`
219219

android/app/version.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#Sat Jan 16 16:46:36 CET 2021
2-
VERSION_CODE=74
1+
#Mon Jan 25 19:50:46 CET 2021
2+
VERSION_CODE=77

src/scenes/settings/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { PureComponent } from 'react';
2-
import { Text,StyleSheet,View, ScrollView, Content } from 'react-native';
2+
import { Text,StyleSheet,View, ScrollView, Content, Linking } from 'react-native';
33
import SettingsContainer from './components/settings-container';
44
import SignificantLocation from './components/significant-location';
55
import ActivityType from './components/activity-type';
@@ -60,6 +60,12 @@ class Settings extends PureComponent {
6060
<Text style={{fontSize: 12,marginLeft: 20,marginRight: 20}}>(Enable audio notifications of app event such as when the tracking acquires a new position)</Text>
6161
<UpdateSwitch stopOnStationary={this.state.stopOnStationary}/>
6262
<Text style={{fontSize: 12,marginLeft: 20,marginRight: 20}}>(The plugin automatically stops tracking after 10 minutes of non-activity - Not recommended to activate it)</Text>
63+
<Text
64+
style={{fontSize: 16, textDecorationLine: 'underline',marginTop: 20,marginBottom: 20,color: 'blue'}}
65+
onPress={() => {Linking.openURL('http://htmlpreview.github.io/?https://github.com/OpenHumans/Overland_android/blob/dev/privacy_policy.html')}}
66+
>
67+
Access to privacy policy
68+
</Text>
6369
</SettingsContainer>
6470
</ScrollView>
6571
}

0 commit comments

Comments
 (0)