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

Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 146035
This commit is contained in:
Raphael Moll
2009-04-13 18:48:47 -07:00
committed by The Android Open Source Project
parent 56565ee9f0
commit 6e00361920

View File

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