diff options
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.adt')
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/properties/AndroidPropertyPage.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/properties/AndroidPropertyPage.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/properties/AndroidPropertyPage.java index 554d64d..05dede1 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/properties/AndroidPropertyPage.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/properties/AndroidPropertyPage.java @@ -134,13 +134,13 @@ public class AndroidPropertyPage extends PropertyPage implements IWorkbenchPrope boolean mustSaveProp = false; IAndroidTarget newTarget = mSelector.getSelected(); - if (newTarget != state.getTarget()) { + if (state == null || newTarget != state.getTarget()) { mPropertiesWorkingCopy.setProperty(ProjectProperties.PROPERTY_TARGET, newTarget.hashString()); mustSaveProp = true; } - if (mIsLibrary.getSelection() != state.isLibrary()) { + if (state == null || mIsLibrary.getSelection() != state.isLibrary()) { mPropertiesWorkingCopy.setProperty(ProjectProperties.PROPERTY_LIBRARY, Boolean.toString(mIsLibrary.getSelection())); mustSaveProp = true; |