Change function name
This commit is contained in:
parent
850df6ce76
commit
de9788d0ae
|
@ -119,7 +119,7 @@ class ScreenLockConfigView extends React.Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
autoLock = () => {
|
toggleAutoLock = () => {
|
||||||
this.setState(({ autoLock }) => ({ autoLock: !autoLock }), () => {
|
this.setState(({ autoLock }) => ({ autoLock: !autoLock }), () => {
|
||||||
this.save();
|
this.save();
|
||||||
this.setPasscode();
|
this.setPasscode();
|
||||||
|
@ -176,7 +176,7 @@ class ScreenLockConfigView extends React.Component {
|
||||||
<Switch
|
<Switch
|
||||||
value={autoLock}
|
value={autoLock}
|
||||||
trackColor={SWITCH_TRACK_COLOR}
|
trackColor={SWITCH_TRACK_COLOR}
|
||||||
onValueChange={this.autoLock}
|
onValueChange={this.toggleAutoLock}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue