Skip to content

Commit

Permalink
Update Server.java
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoviola-systemelectronics committed Jul 4, 2024
1 parent 12b1cc8 commit 48b6ada
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ private Server() {
private static void scrcpy(Options options) throws IOException {
final Device device = new Device(options);

String oldValue = "1800000";
try {
String oldValue = Settings.getAndPutValue(Settings.TABLE_SYSTEM, "screen_off_timeout", String.valueOf(1800000));
oldValue = Settings.getAndPutValue(Settings.TABLE_SYSTEM, "screen_off_timeout", String.valueOf(1800000));
} catch (SettingsException e) {
Ln.e("Could not change \"screen_off_timeout\"", e);
}
Expand Down

0 comments on commit 48b6ada

Please sign in to comment.