Fix resource loading issue.

Once robolectric tests are run with PanoSetupLib resources it
crashes with a NumberFormatException. This is caused by the
resource loader having the assumption that resources that
are referenced must be of the same type.

Such as:
<dimen name="foo">10dp</dimen>
<dimen name="bar">@dimen/foo</dimen>

However, the following case crashes (and is valid):
<integer name="foo">30dp</integer>
<dimen name="bar">@integer/foo</dimen>

This change explicitly allowed dimen resources to reference dimen
resources and integer resources.

Probably wouldn't need this change if we moved to v2 which uses
AOSP code for resource loading, but haven't had time to work on
the migration.

Change-Id: I726f69bd5740f31b7d9f1ae863a8792d764f3ee3
2 files changed
tree: b6b3c0e052438e2be077ad693d2828cbf50972e1
  1. .idea/
  2. lib/
  3. src/
  4. .gitignore
  5. .pairs
  6. .travis.yml
  7. Android.mk
  8. build.properties
  9. build.xml
  10. find-android.bat
  11. find-android.sh
  12. LICENSE.txt
  13. pom.xml
  14. README.md
  15. update-downloads.rb
README.md

Robolectric

An Android Testing Framework

Robolectric can be built using either Maven or Ant. Both Eclipse (with the M2Eclipse plug-in) and IntelliJ can import the pom.xml file and will automatically generate their project files from it.

For more information about how to use Robolectric on your project, extend its functionality, and join the community of contributors, please see: http://pivotal.github.com/robolectric/index.html

Build Status

http://ci.robolectric.org