Press home when user leaves so that we don't leave a game running 24/7 killing the device.

This commit is contained in:
Simo Kinnunen
2014-09-10 19:28:41 +09:00
parent 76f5f14ace
commit 265287382a

View File

@@ -103,6 +103,7 @@ module.exports = syrup.serial()
})
plugin.on('leave', function() {
service.pressKey('home')
service.releaseWakeLock()
service.lock()
})