From 5be31305634543cc415ae5d6847f5a4b723a0b69 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Mon, 26 Oct 2009 13:55:27 -0700 Subject: ADT/GEL: Reenable config popup when switching from a device with only 1 config Change-Id: I7f60270ffbcaae420f4da245ff3d9b271885fa37 BUG: 2218975 --- .../editors/layout/configuration/ConfigurationComposite.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'eclipse') 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(); -- cgit v1.1