提交 0bf110dd 编写于 作者: B brunoais 提交者: Romain Vimont

Reset power mode only if screen is on

PR #1670 <https://github.com/Genymobile/scrcpy/pull/1670>
Signed-off-by: NRomain Vimont <rom@rom1v.com>
上级 0c5e0a4f
......@@ -78,7 +78,9 @@ public final class CleanUp {
if (restoreNormalPowerMode) {
Ln.i("Restoring normal power mode");
Device.setScreenPowerMode(Device.POWER_MODE_NORMAL);
if (Device.isScreenOn()) {
Device.setScreenPowerMode(Device.POWER_MODE_NORMAL);
}
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册