Skip to content

Commit

Permalink
更新V12.7.4
Browse files Browse the repository at this point in the history
优化兼容性
  • Loading branch information
mingzhixian committed Jul 22, 2023
1 parent 6797232 commit 05773f8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
8 changes: 4 additions & 4 deletions scrcpy_android/.idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions scrcpy_android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "top.saymzx.scrcpy.android"
minSdk 23
targetSdk 33
versionCode 1273
versionName "12.7.3"
versionCode 1274
versionName "12.7.4"
resConfigs "zh"
resConfigs "xhdpi"
ndk {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ class Scrcpy(private val device: Device) {
" ls -l /data/local/tmp/scrcpy_android_server_${appData.versionCode}.jar ",
true
)
if (!(isHaveServer.contains("No such file or directory") || isHaveServer.contains("Invalid argument"))) return
} else {
return
}
}
stop("发送Server失败")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,13 @@ public Point getPhysicalPoint(Position position) {
}
Rect contentRect = screenInfo.getContentRect();
Point point = devicePosition.getPoint();
int convertedX = contentRect.left + point.getX() * contentRect.width() / unlockedVideoSize.getWidth();
int convertedY = contentRect.top + point.getY() * contentRect.height() / unlockedVideoSize.getHeight();
return new Point(convertedX, convertedY);
try {
int convertedX = contentRect.left + point.getX() * contentRect.width() / unlockedVideoSize.getWidth();
int convertedY = contentRect.top + point.getY() * contentRect.height() / unlockedVideoSize.getHeight();
return new Point(convertedX, convertedY);
} catch (Exception e) {
return null;
}
}

public static String getDeviceName() {
Expand Down

0 comments on commit 05773f8

Please sign in to comment.