Commit e2a8d27c authored by Maurice Lam's avatar Maurice Lam
Browse files

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
parent 74acd46e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment