mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-09-02 15:46:50 +00:00
update:
调整关闭屏幕和电源按钮的功能实现 安卓targetsdk更新到29
This commit is contained in:
parent
d973abfb9d
commit
246a346588
10 changed files with 38 additions and 25 deletions
|
@ -22,11 +22,11 @@ allprojects {
|
|||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 27
|
||||
compileSdkVersion 29
|
||||
defaultConfig {
|
||||
applicationId "com.genymobile.scrcpy"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 27
|
||||
targetSdkVersion 29
|
||||
versionCode 5
|
||||
versionName "1.4"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
|
|
|
@ -204,7 +204,7 @@ public final class Device {
|
|||
public void setScreenPowerMode(int mode) {
|
||||
IBinder d = SurfaceControl.getBuiltInDisplay(0);
|
||||
SurfaceControl.setDisplayPowerMode(d, mode);
|
||||
Ln.i("Device screen turned " + (mode == Device.POWER_MODE_OFF ? "off" : "on"));
|
||||
Ln.i("Device screen turned " + (mode == Device.POWER_MODE_OFF ? "off " : "on ") + mode);
|
||||
}
|
||||
|
||||
static Rect flipRect(Rect crop) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue