Skip to content

Commit

Permalink
更新V12.1
Browse files Browse the repository at this point in the history
修复部分设备花屏bug
优化界面
  • Loading branch information
mingzhixian committed Jul 9, 2023
1 parent 5de2481 commit 5e16a77
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
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 120
versionName "12.0"
versionCode 121
versionName "12.1"
resConfigs "zh"
resConfigs "xhdpi"
ndk {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ class SetActivity : Activity() {
private fun setRenewKeyListener() {
setActivity.setRenewKey.setOnClickListener {
AdbKeyPair.generate(appData.privateKey, appData.publicKey)
Toast.makeText(this, "已刷新", Toast.LENGTH_SHORT).show()
}
}

Expand Down
1 change: 1 addition & 0 deletions scrcpy_android/app/src/main/res/layout/spinner_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
android:background="@color/cardBackground"
android:paddingStart="12dp"
android:paddingTop="5dp"
android:paddingEnd="12dp"
android:paddingBottom="5dp"
android:text="测试"
android:textColor="@color/onCardBackground"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private void streamScreen() throws IOException, ConfigurationException {
if (codeInfo.getCapabilitiesForType(codec.getMimeType()).getEncoderCapabilities().isBitrateModeSupported(MediaCodecInfo.EncoderCapabilities.BITRATE_MODE_CBR)) {
format.setInteger(MediaFormat.KEY_BITRATE_MODE, MediaCodecInfo.EncoderCapabilities.BITRATE_MODE_CBR);
}
format.setInteger(MediaFormat.KEY_COLOR_FORMAT, COLOR_FormatYUV420Flexible);
// format.setInteger(MediaFormat.KEY_COLOR_FORMAT, COLOR_FormatYUV420Flexible);

Surface surface = null;
try {
Expand Down

0 comments on commit 5e16a77

Please sign in to comment.