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

Original author: raphael
  Merged from: //branches/cupcake/...
  Original author: android-build

Automated import of CL 146508
This commit is contained in:
Raphael Moll
2009-04-16 11:44:28 -07:00
committed by The Android Open Source Project
parent eabaca062a
commit fb9412141e

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) {