forked from qt-creator/qt-creator
Android: Improve "Add new AVD" dialog
* Re-organize the implementation to create a new AVD * Use SystemImage instead of SdKPlatform because now an SdkPlatform can be installed partially with a SystemImage. The current implementation does not consider the this case, thus we end up with an uncomplete list of installed system images. * Add Device definitions with categories (phone, tablet, tv, etc.) to the creation process (check -d arg in avdmanager create avd). Task-number: QTCREATORBUG-23284 Change-Id: Id02a71ad452fb423fa2781d06ef3fcf2afa328a9 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -260,7 +260,8 @@ QVariant AvdModel::data(const QModelIndex &index, int role) const
|
||||
return cpuAbis.isEmpty() ? QVariant() : QVariant(cpuAbis.first());
|
||||
}
|
||||
case 3:
|
||||
return currentRow.avdDevice;
|
||||
return currentRow.avdDevice.isEmpty() ? QVariant("Custom")
|
||||
: currentRow.avdDevice;
|
||||
case 4:
|
||||
return currentRow.avdTarget;
|
||||
case 5:
|
||||
@@ -556,7 +557,7 @@ void AndroidSettingsWidget::openOpenJDKDownloadUrl()
|
||||
void AndroidSettingsWidget::addAVD()
|
||||
{
|
||||
disableAvdControls();
|
||||
CreateAvdInfo info = AvdDialog::gatherCreateAVDInfo(this, m_sdkManager.get());
|
||||
CreateAvdInfo info = AvdDialog::gatherCreateAVDInfo(this, m_sdkManager.get(), m_androidConfig);
|
||||
|
||||
if (!info.isValid()) {
|
||||
enableAvdControls();
|
||||
|
||||
Reference in New Issue
Block a user