forked from qt-creator/qt-creator
Add AndroidRunnable
Using the AndroidRunnable is easy for other plugins to run custom adb commands before intent is started and after it's stopped. Change-Id: I012ae87c92cea16aa8074dce2dc6f2b0c4ebeb30 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -42,6 +42,7 @@ AndroidRunControl::AndroidRunControl(AndroidRunConfiguration *rc)
|
||||
, m_runner(new AndroidRunner(this, rc, ProjectExplorer::Constants::NORMAL_RUN_MODE))
|
||||
, m_running(false)
|
||||
{
|
||||
setRunnable(m_runner->runnable());
|
||||
setIcon(Icons::RUN_SMALL);
|
||||
}
|
||||
|
||||
@@ -63,6 +64,7 @@ void AndroidRunControl::start()
|
||||
connect(m_runner, SIGNAL(remoteProcessFinished(QString)),
|
||||
SLOT(handleRemoteProcessFinished(QString)));
|
||||
appendMessage(tr("Starting remote process."), Utils::NormalMessageFormat);
|
||||
m_runner->setRunnable(runnable().as<AndroidRunnable>());
|
||||
m_runner->start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user