forked from qt-creator/qt-creator
Android: Rewrite waitForAvd()
Now takes a QFutureInterface to enable canceling and beautify the code by splitting it up. Change-Id: Ifedf19c3ad1a37a9b7cb6b7db8ec799ceebc5392 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
@@ -295,7 +295,7 @@ bool AndroidDeployQtStep::init()
|
||||
void AndroidDeployQtStep::run(QFutureInterface<bool> &fi)
|
||||
{
|
||||
if (!m_avdName.isEmpty()) {
|
||||
QString serialNumber = AndroidConfigurations::instance().waitForAvd(m_deviceAPILevel, m_targetArch);
|
||||
QString serialNumber = AndroidConfigurations::instance().waitForAvd(m_deviceAPILevel, m_targetArch, fi);
|
||||
if (serialNumber.isEmpty()) {
|
||||
fi.reportResult(false);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user