From 4e22267aeee4b2d93181e0b4976ef5ae6891496b Mon Sep 17 00:00:00 2001 From: TGSAN Date: Mon, 25 Nov 2019 01:23:21 +0800 Subject: [PATCH] Update 20191125.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 多个设备时处理错误 --- MirrorCaster/MainForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MirrorCaster/MainForm.cs b/MirrorCaster/MainForm.cs index 2ceda94..7f04378 100644 --- a/MirrorCaster/MainForm.cs +++ b/MirrorCaster/MainForm.cs @@ -335,7 +335,7 @@ private void Form1_Resize(object sender, EventArgs e) private bool UpdateScreenDeviceInfo() { string str = ADBResult("shell \"dumpsys window displays && dumpsys SurfaceFlinger\"").ToLower(); - if (str.StartsWith("error: no devices/emulators found")) + if (str.StartsWith("error: no devices/emulators found") || str.StartsWith("error: more than one device/emulator")) { return false; //MessageBox.Show("找不到任何设备或模拟器", "警告"); }