Skip to content

Commit 4e22267

Browse files
committed
Update 20191125.3
多个设备时处理错误
1 parent 76f254e commit 4e22267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MirrorCaster/MainForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ private void Form1_Resize(object sender, EventArgs e)
335335
private bool UpdateScreenDeviceInfo()
336336
{
337337
string str = ADBResult("shell \"dumpsys window displays && dumpsys SurfaceFlinger\"").ToLower();
338-
if (str.StartsWith("error: no devices/emulators found"))
338+
if (str.StartsWith("error: no devices/emulators found") || str.StartsWith("error: more than one device/emulator"))
339339
{
340340
return false; //MessageBox.Show("找不到任何设备或模拟器", "警告");
341341
}

0 commit comments

Comments
 (0)