Steal working android setup from deckard
Merge pull request #1178 from seadowg/fix-travis

Fix travis build
Add startVisibleFragment to make sure you can test visible fragments
Clean up duplication
Merge pull request #1179 from seadowg/visible-fragment

Add util for testing visible fragments
Add support for dependent preferences.

Pull request: https://github.com/robolectric/robolectric/commit/d61f0d61a95598d8aedf8add4ea14a8aad6ab3c4 caused dependencies to be set
when specified in the resources file. This was causing Preference.registerDependency() to throw an IllegalStateException since
no PreferenceManager was set with which to look up the dependency.

1. Added a dependency preference in preferences.xml which exposes this bug.
2. Fix bug by reflectively calling onAttachedToHierarchy() passing the PreferenceManager down the hierarchy of preferences.
Merge pull request #1180 from jongerrish/support_dependent_preferences

Add support for dependent preferences.