appcelerator/titanium_mobile — pull request #2358 by joshthecoder (2012-06-08 18:27:52+00:00)
Title: [TIMOB-9445] Android: Views - Missing color for View 3

This fixes a bug that was causing the view background colors to
disappear. The cause was due to how we setup the state list drawable when
there is only a "default" background color state.

Fixed issue by avoiding the state list if no color/image state properties are used (ex: backgroundSelectedColor). If we must use a state list, when no color/image is provided for
a state use the "default" state's color/image.

Test this by running the KS example Base UI - Views - Remove Views.
You should see three views (prior to the fix the 3rd view was missing).