commit | 833361cdb5b3f5bfe137780236684557cdb5c44c | [log] [tgz] |
---|---|---|
author | Raphael Moll | Mon Apr 13 17:12:59 2009 -0700 |
committer | The Android Open Source Project <initial-contribution@android.com> | Mon Apr 13 17:12:59 2009 -0700 |
tree | 8d594f722b49ece8c29647f355ae3ce31f8d7c6d | |
parent | ae600adcd54e48f6fd83bdcfd2ef28a9673404cb [diff] |
AI 146034: ADT #1786173: NPW should not overwritte user-customized path BUG=1786173 Automated import of CL 146034
diff --git a/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/wizards/newproject/NewProjectCreationPage.java b/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/wizards/newproject/NewProjectCreationPage.java index 6e8ff47..61b1534 100644 --- a/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/wizards/newproject/NewProjectCreationPage.java +++ b/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/wizards/newproject/NewProjectCreationPage.java
@@ -661,7 +661,7 @@ 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) {