AI 146034: ADT #1786173: NPW should not overwritte user-customized path

BUG=1786173

Automated import of CL 146034
This commit is contained in:
Raphael Moll
2009-04-13 17:12:59 -07:00
committed by The Android Open Source Project
parent ae600adcd5
commit 833361cdb5

View File

@@ -661,7 +661,7 @@ public class NewProjectCreationPage extends WizardPage {
abs_dir.equals(sCustomLocationOsPath);
sCustomLocationOsPath = TextProcessor.process(abs_dir);
} else if (sAutoComputeCustomLocation ||
!new File(sCustomLocationOsPath).isDirectory()) {
(!is_new_project && !new File(sCustomLocationOsPath).isDirectory())) {
// By default select the samples directory of the current target
IAndroidTarget target = getSdkTarget();
if (target != null) {