forked from qt-creator/qt-creator
Android: Add extension to the package name in SdkManager
- Add "Extension 4" if the name contain "-ext4" - Fix issue with two Tiramisu packages, now one of them conatin "Extension 4" in the end. Change-Id: Ib84807e9401acdef53c3dc1195dc3dc6ef34a57d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -149,7 +149,9 @@ QVariant AndroidSdkModel::data(const QModelIndex &index, int role) const
|
||||
const SdkPlatform *platform = m_sdkPlatforms.at(index.row() - 1);
|
||||
if (role == Qt::DisplayRole) {
|
||||
if (index.column() == packageNameColumn) {
|
||||
QString androidName = AndroidManager::androidNameForApiLevel(platform->apiLevel());
|
||||
const QString androidName = AndroidManager::androidNameForApiLevel(
|
||||
platform->apiLevel())
|
||||
+ platform->extension();
|
||||
if (androidName.startsWith("Android"))
|
||||
return androidName;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user