aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2009-10-26 13:55:27 -0700
committerXavier Ducrohet <xav@android.com>2009-10-26 13:55:27 -0700
commit5be31305634543cc415ae5d6847f5a4b723a0b69 (patch)
tree7dd1b56ba1184e8ff2438b053806910752a695ce /eclipse
parent7755123fcfe7ac4752263249641ce68e7d597ecb (diff)
downloadsdk-5be31305634543cc415ae5d6847f5a4b723a0b69.zip
sdk-5be31305634543cc415ae5d6847f5a4b723a0b69.tar.gz
sdk-5be31305634543cc415ae5d6847f5a4b723a0b69.tar.bz2
ADT/GEL: Reenable config popup when switching from a device with only 1 config
Change-Id: I7f60270ffbcaae420f4da245ff3d9b271885fa37 BUG: 2218975
Diffstat (limited to 'eclipse')
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ConfigurationComposite.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ConfigurationComposite.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ConfigurationComposite.java
index b6f9a09..1178449 100644
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ConfigurationComposite.java
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ConfigurationComposite.java
@@ -628,10 +628,7 @@ public class ConfigurationComposite extends Composite {
}
mDeviceConfigs.select(0);
- if (configNames.size() == 1) {
- mDeviceConfigs.setEnabled(false);
- }
-
+ mDeviceConfigs.setEnabled(configNames.size() > 1);
}
if (recomputeLayout) {
onDeviceConfigChange();