mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Lock rotation when devices are being used if --lock-rotation is given.
This commit is contained in:
parent
f179f80238
commit
a08f50e155
3 changed files with 12 additions and 2 deletions
|
@ -104,6 +104,7 @@ module.exports = syrup.serial()
|
|||
|
||||
plugin.on('leave', function() {
|
||||
service.pressKey('home')
|
||||
service.thawRotation()
|
||||
service.releaseWakeLock()
|
||||
})
|
||||
|
||||
|
|
|
@ -365,7 +365,7 @@ module.exports = syrup.serial()
|
|||
plugin.rotate = function(rotation) {
|
||||
return runAgentCommand(
|
||||
apk.wire.MessageType.SET_ROTATION
|
||||
, new apk.wire.SetRotationRequest(rotation, false)
|
||||
, new apk.wire.SetRotationRequest(rotation, options.lockRotation || false)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue