From df9cb9768ef3871881774f6becc76416e393b2d2 Mon Sep 17 00:00:00 2001 From: Raphael Moll <> Date: Mon, 13 Apr 2009 18:48:47 -0700 Subject: [PATCH] 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 --- .../ide/eclipse/adt/wizards/newproject/NewProjectCreationPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/wizards/newproject/NewProjectCreationPage.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/wizards/newproject/NewProjectCreationPage.java index 6e8ff47fe..61b15346e 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/wizards/newproject/NewProjectCreationPage.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/wizards/newproject/NewProjectCreationPage.java @@ -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) { -- 2.11.0