Commit 680b6433 by zeven

优化屏幕自动休眠时间

parent 1032555d
......@@ -185,7 +185,6 @@ class FacePage extends Component {
};
face = () => {
this.wakeUp();
this.state.faceType === 'wxpay' ? this.wechatFace() : this.smileFace();
};
......@@ -194,6 +193,8 @@ class FacePage extends Component {
if (count === -1) {
// 重力感应开始识别
this.face();
clearTimeout(this.wakeUpTimeout);
this.setState({sleep: false});
} else if (count === 0) {
// 重力感应归零
this.leaveC();
......@@ -352,7 +353,7 @@ class FacePage extends Component {
this.setState({
talkCall: 2,
});
}, 30000);
}, 20000);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment