mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Add option to control screen resetting on device release
This commit is contained in:
@@ -104,8 +104,10 @@ module.exports = syrup.serial()
|
||||
})
|
||||
|
||||
plugin.on('leave', function() {
|
||||
service.pressKey('home')
|
||||
service.thawRotation()
|
||||
if (options.screenReset) {
|
||||
service.pressKey('home')
|
||||
service.thawRotation()
|
||||
}
|
||||
service.releaseWakeLock()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user