AI 146034: ADT #1786173: NPW should not overwritte user-customized path
BUG=1786173 Automated import of CL 146034
This commit is contained in:
committed by
The Android Open Source Project
parent
ae600adcd5
commit
833361cdb5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user