mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-07-31 13:18:51 +00:00
Always use non-empty arguments
The client passes parameters to the server via "adb shell" arguments. Use "-" instead of "" when no crop is specified to avoid empty arguments, which are not handled the same way on all devices. Fixed <https://github.com/Genymobile/scrcpy/issues/337>.
This commit is contained in:
parent
d81729ba39
commit
1e22ebcac2
2 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ public final class Server {
|
|||
}
|
||||
|
||||
private static Rect parseCrop(String crop) {
|
||||
if (crop.isEmpty()) {
|
||||
if ("-".equals(crop)) {
|
||||
return null;
|
||||
}
|
||||
// input format: "width:height:x:y"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue