Skip to content

Commit

Permalink
Update 20191125.3
Browse files Browse the repository at this point in the history
多个设备时处理错误
  • Loading branch information
TGSAN committed Nov 24, 2019
1 parent 76f254e commit 4e22267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MirrorCaster/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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("找不到任何设备或模拟器", "警告");
}
Expand Down

0 comments on commit 4e22267

Please sign in to comment.