Commit 87922f58 authored by Daniel Teske's avatar Daniel Teske

Android: Allow creating a avd without a sdcard

And make that the default. SdCards are not that useful, so
creating one by default is odd.

Change-Id: Iddb34e9e3387c9c4488f7b2bc11799cfc28c9a43
Task-number: QTCREATORBUG-13590
Reviewed-by: default avatarLeena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: default avatarBogDan Vatra <bogdan@kde.org>
parent 3ddb751b
......@@ -95,13 +95,13 @@
<string> MiB</string>
</property>
<property name="minimum">
<number>50</number>
<number>0</number>
</property>
<property name="maximum">
<number>9999999</number>
</property>
<property name="value">
<number>200</number>
<number>0</number>
</property>
</widget>
</item>
......
......@@ -597,8 +597,9 @@ AndroidConfig::CreateAvdInfo AndroidConfig::createAVDImpl(CreateAvdInfo info, Fi
arguments << QLatin1String("create") << QLatin1String("avd")
<< QLatin1String("-t") << info.target
<< QLatin1String("-n") << info.name
<< QLatin1String("-b") << info.abi
<< QLatin1String("-c") << QString::fromLatin1("%1M").arg(info.sdcardSize);
<< QLatin1String("-b") << info.abi;
if (info.sdcardSize > 0)
arguments << QLatin1String("-c") << QString::fromLatin1("%1M").arg(info.sdcardSize);
proc.start(androidToolPath.toString(), arguments);
if (!proc.waitForStarted()) {
info.error = QApplication::translate("AndroidConfig", "Could not start process \"%1 %2\"")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment