Commit 72cc4d6f authored by Ian Fischer's avatar Ian Fischer

Don’t give a scary error about not being able to run on Android if there’s no...

Don’t give a scary error about not being able to run on Android if there’s no Android device connected.
parent fbb1f866
...@@ -230,13 +230,15 @@ class AndroidDevice extends _Device { ...@@ -230,13 +230,15 @@ class AndroidDevice extends _Device {
_adbPath = _getAdbPath(); _adbPath = _getAdbPath();
_hasAdb = _checkForAdb(); _hasAdb = _checkForAdb();
// Checking for lollipop only needs to be done if we are starting an if (isConnected()) {
// app, but it has an important side effect, which is to discard any // Checking for lollipop only needs to be done if we are starting an
// progress messages if the adb server is restarted. // app, but it has an important side effect, which is to discard any
_hasValidAndroid = _checkForLollipopOrLater(); // progress messages if the adb server is restarted.
_hasValidAndroid = _checkForLollipopOrLater();
if (!_hasAdb || !_hasValidAndroid) {
_logging.severe('Unable to run on Android.'); if (!_hasAdb || !_hasValidAndroid) {
_logging.severe('Unable to run on Android.');
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment