History log of /frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/util/FallbackThemeWrapperTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e2a8d27c2a43cf0b48b80e5b05f893222c541e04 17-Feb-2017 Maurice Lam <yukl@google.com> Add theme fallback

- Add FallbackThemeWrapper, which behaves like ContextThemeWrapper,
except that the base context's theme attributes takes precedence
over the wrapper context's.
- Use the FallbackThemeWrapper in TemplateLayout (SetupWizardLayout
and GlifLayout), so that inflating them with the wrong theme will
not crash, but rather look wrong.

This allows SuwLib to add required attributes without risking
crashing clients that for some reason doesn't use the right themes.

Test: ./gradlew connectedAndroidTest
Change-Id: I694ad7279ce733659f6aa5d72e2087a09d3f1e22
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/util/FallbackThemeWrapperTest.java