|
|
@@ -216,17 +216,8 @@ export default class Settings extends Component {
|
|
|
value={this.state.settings.alwaysLocation}
|
|
|
onValueChange={v => this.changeSwitch('alwaysLocation', v)}/>
|
|
|
</Button>
|
|
|
- <Button
|
|
|
- style={styles.itemButton}
|
|
|
- viewStyle={styles.itemView}
|
|
|
- onClick={() => this.changeSwitch('moveMyLocation', !this.state.settings.moveMyLocation)}>
|
|
|
- <Text style={styles.buttonText}>{$t('settings.moveMyLocations')}</Text>
|
|
|
- <Switch
|
|
|
- value={this.state.settings.moveMyLocation}
|
|
|
- onValueChange={v => this.changeSwitch('moveMyLocation', v)}/>
|
|
|
- </Button>
|
|
|
<View style={styles.menuView}>
|
|
|
- <Text style={styles.buttonText}>{$t('settings.autoRefreshInterval')}</Text>
|
|
|
+ <Text style={styles.buttonText}>{$t('settings.refreshInterval')}</Text>
|
|
|
<Dropdown
|
|
|
style={styles.localeSelect}
|
|
|
list={this.state.intervalList}
|
|
|
@@ -240,6 +231,15 @@ export default class Settings extends Component {
|
|
|
onChange={v => this.changeSettings("refreshInterval", v)}
|
|
|
/>
|
|
|
</View>
|
|
|
+ <Button
|
|
|
+ style={styles.itemButton}
|
|
|
+ viewStyle={styles.itemView}
|
|
|
+ onClick={() => this.changeSwitch('moveMyLocation', !this.state.settings.moveMyLocation)}>
|
|
|
+ <Text style={styles.buttonText}>{$t('settings.moveMyLocations')}</Text>
|
|
|
+ <Switch
|
|
|
+ value={this.state.settings.moveMyLocation}
|
|
|
+ onValueChange={v => this.changeSwitch('moveMyLocation', v)}/>
|
|
|
+ </Button>
|
|
|
</View>
|
|
|
);
|
|
|
}
|