forked from qt-creator/qt-creator
Android: Inline AndroidManager::intentName into only user
Using Target is actually not optimal as handle to access that information (BuildSystem + BuildKey or sth to that effect would be better), so reduce the visibility of this kind of interface. Change-Id: I138f156b51795d51d2af49c5119d160663dfc20d Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -132,7 +132,10 @@ AndroidRunner::AndroidRunner(RunControl *runControl, const QString &intentName)
|
||||
m_checkAVDTimer.setInterval(2000);
|
||||
connect(&m_checkAVDTimer, &QTimer::timeout, this, &AndroidRunner::checkAVD);
|
||||
|
||||
QString intent = intentName.isEmpty() ? AndroidManager::intentName(m_target) : intentName;
|
||||
QString intent = intentName;
|
||||
if (intent.isEmpty())
|
||||
intent = AndroidManager::packageName(m_target) + '/' + AndroidManager::activityName(m_target);
|
||||
|
||||
m_packageName = intent.left(intent.indexOf('/'));
|
||||
qCDebug(androidRunnerLog) << "Intent name:" << intent << "Package name" << m_packageName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user