Fix 'are there any views available' check (#19231)

This commit is contained in:
Alexander Aprelev
2018-07-10 17:58:36 -07:00
committed by GitHub
parent 02f4f32b5b
commit acf3f3d839

View File

@@ -636,7 +636,7 @@ abstract class ResidentRunner {
compileExpression: compileExpression);
await device.getVMs();
await device.waitForViews();
if (device.views == null)
if (device.views.isEmpty)
printStatus('No Flutter views available on ${device.device.name}');
else
viewFound = true;