OSDN Git Service

Fix the locale selection in the config selector.
authorXavier Ducrohet <xav@android.com>
Wed, 6 Jan 2010 23:12:12 +0000 (15:12 -0800)
committerXavier Ducrohet <xav@android.com>
Thu, 7 Jan 2010 17:11:45 +0000 (09:11 -0800)
commit7e23cf2298572bc7ed6dc0cb731a8d55337b94a1
treed363b7519fb6704eca244fdd4054d3fe47357e6a
parent3917a7db4e9e637698405901557c6f9826acc051
Fix the locale selection in the config selector.

default locale means nothing. Instead we replace it with
- "any" if there are no resources specific to a locale in the project.
- "other" if there are resources specific to a locale in the project.

In both case, the actual locale used by the config is hard-coded to
a value that cannot be used by the resources ("__" for the language,
and "__" for the region), to enforce using the default resources.
Using a config with no language nor region had the effect to take
the first resources with a valid qualifier for language and/or
region.

Change-Id: I67a34d1a026a5d3d5e1438d3763ae27c5ed0ce55
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ConfigurationComposite.java