Skip to content

Commit

Permalink
Adapt to Device being static now
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoais committed Jul 8, 2020
1 parent bbc0ae2 commit 1ce9a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main/java/com/genymobile/scrcpy/CleanUp.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static void main(String... args) {
}
if (scheduleScreenOn) {
Ln.i("Restoring \"displayPowerMode\"");
new Device(new Options()).setScreenPowerMode(Device.POWER_MODE_NORMAL);
Device.setScreenPowerMode(Device.POWER_MODE_NORMAL);
}
}
}
Expand Down

0 comments on commit 1ce9a82

Please sign in to comment.